how to plot graph
Show older comments
Suppose i have a result,
result = 1 2 3 4
5 6 7 8
9 10 11 12
where in this 3x4 matrix, the 3 rows denote 3 different generator and 4 coloumns denote time period in four hours.
how to plot a graph for time vs the generation. that is in x-axis you will have 4 hrs time period with 1 hr difference and y axis will be generation takin into account the 3 different generator values for each hour.
The above one is for example purpose. I need to plot for 6 generating units for 12 hours.
Answers (1)
Star Strider
on 8 Feb 2019
result = [1 2 3 4
5 6 7 8
9 10 11 12];
time = [1 2 3 4];
figure
plot(time, result)
Categories
Find more on Line Plots 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!