Removing 1 column of ydata
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi there, I was wondering if there was a way to delete a single column of ydata in a plot without having to do it manually each time?
Thanks, Ben
댓글 수: 0
채택된 답변
Walter Roberson
2012년 6월 5일
... Just don't plot it?
not_col = 7; %for example
yt = ydata;
yt(:,not_col) = [];
plot(yt)
or
not_col = 7; %for example
plot( ydata(:, setdiff(1:size(ydata,2), not_col) ))
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!