how can I plot the following function in matlab without symbolic toolbox?
6 visualizzazioni (ultimi 30 giorni)
with Ts=300 , Ti=100 , L=1 , x=0:0.01:L, t=0.5 and a=0.1
I have written the following code but it doesn't work. can sb help me?
clc; clear all
it should give me a sin like figure but it gives
please help me to find the problem. :((
the cyclist il 3 Gen 2014
Modificato: the cyclist il 3 Gen 2014
Looks pretty sinusoidal to me. You've only plotted a very small portion, though. Maybe try letting x run from -5 to 5 to see more of the domain?
Also, I think you can let m be something a lot smaller, and you will still see the limiting behavior well.
I notice in your formula you have (-1)^3.14 in one place where the formula has (-1)^m.
Finally, you can use "pi" in place of 3.14. MATLAB understands what that means.