make header from numeric array
이전 댓글 표시
Hi,
I have a numeric array and want to concatenate each element with a string. As I will use the new array as a header, it needs to end up as a cell array.
i am trying:
wl_arr = 400:1.85:2400;
hdr = strcat('L_conv_', num2cell(wl_arr));
but get this:

I also tried:
wl_arr_str = num2str(wl_arr);
rad_conv_hdr1 = strcat('L_conv_', wl_arr_str);
댓글 수: 3
Walter Roberson
2019년 8월 30일
"L_conv_" + wl_arr
Provided you have r2017a or later
Andrew Longmire
2019년 8월 30일
Walter Roberson
2019년 8월 30일
Your code does not use table objects so it is not clear why you have that error.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Animation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!