To show v(t) = v0*(1-(t/t).^4).^2 in MATLAB, you can define the function and then plot it using the plot function. Here's the code:
main.m218 chars13 lines
In this code, v is defined as an anonymous function that takes in t and v0 as input parameters. The function is then plotted by calling plot with the t vector and passing v(t, v0) as the corresponding y vector. The xlabel, ylabel, and title functions are used to label the plot appropriately. Note that in this example, t is set from 0 to 1 with increments of 0.1, but you can adjust the range and step size as needed.
gistlibby LogSnag