Last else if graph not plotting
Show older comments
if i==3600
hold on;
plot(x,C);
elseif i==10800
plot(x,C);
elseif i==36000
plot(x,C);
elseif i==36300
plot(x,C);
hold off;
end
In the above program, if i varies from 0 to 36300 or more then last plot is not happening and if I add one more else if i ==36600 then that will not get plot.
Accepted Answer
More Answers (1)
KSSV
on 2 Nov 2020
Try like this:
hold on
if i==3600
plot(x,C);
elseif i==10800
plot(x,C);
elseif i==36000
plot(x,C);
elseif i==36300
plot(x,C);
end
hold off
Though I don't understand..what is the purpose to plot like this.
1 Comment
ANMOL BAKSHI
on 2 Nov 2020
Categories
Find more on Polygons in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


