plotting cells from arrays
조회 수: 13 (최근 30일)
이전 댓글 표시
for k2 = 1:22
data2 = mean(cellfun(@(x) x(k2,4), thething))
plot(data2,'-')
end
this is my codes. thething is my arrays contain cells. After I run the scripts, the plot just show nothing on it. Please tell me what's wrong with my code?
댓글 수: 8
Stephen23
2018년 6월 28일
@Kuang-Yu WANG: please upload your data in a .mat file by clicking the paperclip button.
답변 (1개)
KSSV
2018년 6월 27일
figure
hold on
for k2 = 1:22
data2 = mean(cellfun(@(x) x(k2,4), thething))
plot(data2,'-')
end
댓글 수: 4
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!