I want it to be from 0 to 6 and the number of digits 100 and not 5000
How can I make the wave in the negative part disappear?
1 view (last 30 days)
Show older comments
t= linspace(0,6,100);
y=sin(pi*t);
plot(t,y)
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!