2D plot with 3 axis and 3 column data
조회 수: 9 (최근 30일)
이전 댓글 표시
I have 3 column data. I plot 2D 3 axis graph in Excel. I want the same also with colours and labels on Matlab. It is attached as graph name. Can you help me please?
댓글 수: 0
채택된 답변
Star Strider
2020년 2월 14일
I have no idea which column is which curve.
Try this:
[D,T,R] = xlsread('Kitap3.xlsx');
Q1 = D(1:15,:);
time = linspace(0, size(D,1), size(D,1));
figure
yyaxis left
plot(time, D(:,1))
hold on
plot(time, D(:,2))
yyaxis right
plot(time, D(:,3))
hold off
Experiment with the column assignments to get the result you want.
댓글 수: 6
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Bar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!