how to draw line from first element of cell array to same cell array but fliplr first element and soon
이전 댓글 표시
how to take the first element from two cell array in single for loop
댓글 수: 2
Star Strider
2015년 4월 26일
How do you create your ‘CHM’ cell array?
Your code is displaying the first 6 elements of it.
Star Strider
2015년 4월 26일
NOTE: This was not the original question (so those of us who Answered it are not as delusional as it might seem from reading our Answers).
The new question is correctly (and more understandably) stated in: how to draw a line from one plotted node to another ploted node.
채택된 답변
추가 답변 (1개)
>> CHM={[];[];17;[];[6 11];[1 9]};
>> for i=1:length(CHM)
if ~isempty(CHM{i}) % NB "the curlies" {} in the addressing...
disp([num2str(i) ': ' num2str(CHM{i})])
end
end
3: 17
5: 6 11
6: 1 9
>>
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


