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:

댓글 수: 0
답변 (1개)
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
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!