Hi
is there any way to plot two last column of an array in the same figure ? my array is 40001x3 and i want to plot only the two column of it
thanks for suggestion

 채택된 답변

amine&&
amine&& 2017년 4월 23일

0 개 추천

Hello, if you have an array like
A = [69.1687 67.7771 68.3709 70.7292 70.8961 65.8046 66.6392 74.2880 69.9386 69.7100 66.2853 67.0199; 68.0923 66.0579 66.2874 69.2144 65.8344 65.6781 67.8803 73.7639 67.3430 67.1914 67.3368 66.7132];
you can use,
plot([A(1,:);A(2,:)]);

댓글 수: 3

HamidReza Saleh
HamidReza Saleh 2017년 4월 23일
Thanks for you're suggestion but the problem is that im looking to plot two last column in same figure but you're suggestion combine my data and make a an array with length of 80002 and then plot it what i want is to plot two column without any combination but in same figure
amine&&
amine&& 2017년 4월 23일
편집: amine&& 2017년 4월 23일
For the example that i already give you can use,
plot(A(1,:),'b');
hold on;
plot(A(2,:),'r');
hold off
You can apply it to your case.
HamidReza Saleh
HamidReza Saleh 2017년 4월 23일
good idea , its working

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

질문:

2017년 4월 23일

댓글:

2017년 4월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by