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

3 次查看(过去 30 天)
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:

回答(1 个)

Abhishek Chakram
Abhishek Chakram 2023-10-5
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

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by