How to plot daily load profile for 1 year data (1-minute interval)
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I haven't been able to figure out the way to automatically plot multiple daily load profile for 1 year data in one figure. How do I do it?
I want to be able to plot them as the 'Active Power (kW) vs Time (hh)' graph:
0 Commenti
Risposte (1)
Abhishek Chakram
il 5 Ott 2023
Hi Muhammad Hilmi Rosli.
It is my understanding that you want to plot multiple daily load profile for 1 year data in a single figure. To achieve this, you can use the “hold” function. Here is a sample code for the same:
% Generate x and y data for multiple plots
x = linspace(0, 2*pi, 100);
y1 = sin(x);
y2 = cos(x);
y3 = tan(x);
% Create a new figure
figure;
% Plot the first curve
plot(x, y1, 'r');
hold on;
% Plot the second curve
plot(x, y2, 'g');
% Plot the third curve
plot(x, y3, 'b');
% Add labels and legends
title('Trigonometric Functions');
xlabel('x');
ylabel('y');
legend('sin(x)', 'cos(x)', 'tan(x)');
% Turn off hold
hold off;
You can refer to the following documentation to know more about the functions used:
Hope this answers your question.
Best Regards,
Abhishek Chakram
0 Commenti
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!