To plot the function x(t) = 10sin(2pi*t)cos(pit/4) in MATLAB, you can follow these steps:
t
with the desired range of values:main.m82 chars2 lines
Note: Since the range you have mentioned is from 10 to 10, I assumed it as a typo and used the same value of 10 to plot. Please modify the range if needed.
t
vector:main.m33 chars2 lines
plot
function:main.m12 chars2 lines
main.m93 chars4 lines
Putting it all together, the MATLAB code to plot the waveform would be:
main.m166 chars7 lines
This code will generate a plot of x(t) over the given range of t, which in this case is from 10 to 10.
gistlibby LogSnag