Save array of names
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello, I need to print a names of mesures in plot and i need an array than have a names of all measures:
name_save =
name1
name2
name3
.....
nameN
I get a new names everry loop:
for k = 1:length(l)
.....
[filepath,name,ext] = fileparts(l(k).name);
........
end
How can I save the names in a loop?
name_save(k) = name; %not working
Thank you!
댓글 수: 0
채택된 답변
madhan ravi
2020년 6월 22일
name_save = compose('name%d', 1:numel(l)) ; % before loop
name_save{k} ... inside loop
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!