How to plot daily load profile for 1 year data (1-minute interval)

4 vues (au cours des 30 derniers jours)
Muhammad Hilmi Rosli
Muhammad Hilmi Rosli le 25 Jan 2022
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:

Réponses (1)

Abhishek Chakram
Abhishek Chakram le 5 Oct 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

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by