CAT arguments dimensions are not consistent.
Show older comments
for i = 1:size(LinkMat,1)
d = LinkMat(:,6)/(c*10);
plot([LinkMat(i,2),LinkMat(i,4)],[LinkMat(i,3),LinkMat(i,5)], 'Color', [0 d 0] );
end
I am getting error at the Plot function probably due to Color. Can't we specify a variable in the matrix ???
Accepted Answer
More Answers (1)
Jan
on 7 Mar 2013
d = LinkMat(:,6)/(c*10);
for i = 1:size(LinkMat,1)
plot(LinkMat(i, [2,4]), LinkMat(i,[3,5]), 'Color', [0, d(i), 0] );
end
1 Comment
Jujhar Khurana
on 14 Mar 2013
Categories
Find more on Surfaces, Volumes, and Polygons in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!