How to save chararcter matrix in single column in NetCdf file?
조회 수: 3 (최근 30일)
이전 댓글 표시
I have a character matrix which can be saved in a netcdf file. I am trying to save it in a single column but it is saving it in different rows and columns. Can someone suggest how to save it in a single column?
char_mat =['101670';'101670';'101670'];
nccreate('char_files.nc','char_mat',...
'Dimensions', {'x',size(char_mat,1),'y',size(char_mat,2)},...
'FillValue','disable','Datatype','char');
ncwrite('char_files.nc','char_mat',char_mat);
댓글 수: 0
답변 (1개)
Udit06
2024년 9월 4일
Hi,
The following MATLAB answer that handles the same issue that you are facing:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 NetCDF에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!