Plotting two matrix error
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello, I'm trying to get graph for two matrix versus each other each is 8000*1 matrix,and I tried plotmatrix too but I get this error : Error using plot Not enough input arguments.
close all
clear all
clc
%by
a=importdata('945bluesteel1018.txt');
b=a.textdata(66:8065,2)
c=a.textdata(66:8065,3)
plot(b,c)
Thanks for your help
댓글 수: 7
Walter Roberson
2013년 9월 6일
Could you put a breakpoint in at the plot statement and run and check the size and class of b and c ? Are they cell arrays perhsp?
the cyclist
2013년 9월 6일
If you put in a breakpoint, be sure to remove your
clear all
command, which I believe will clear the breakpoint before you can stop at it.
답변 (1개)
Image Analyst
2013년 9월 6일
This works for me:
a=sort(rand(8065, 3)); % Sample data.
b=a(66:8065,2);
c=a(66:8065,3);
whos ('a', 'b', 'c')
plot(b, c);
You must be doing something you aren't showing us, other than the exact error message (everything in red) which, for some reason, you chose not to share with us.
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!