How to ncread a variable with spaces in its title?
1 次查看(过去 30 天)
显示 更早的评论
I have a fairly simple problem, however its solution keeps evading me. Data I have has a variable whose name has spaces in it.
I tried ignoring the spaces, putting it in brackets, adding / symbol etc, but so far nothing of the kind worked.
I would greatly appeciate a suggestion
Title of variable is 'sea ice concentration'
for k=2013:2013 %2018
si_masam_aug = ncread(['Masam2_' int2str(k) 'august.nc'],sea\ ice\ concentration);
si_masam_sept = ncread(['Masam2_' int2str(k) 'september.nc'],sea\ ice\ concentration);
masam_aug{k-2012} = si_masam_aug;
masam_sept{k-2012} = si_masam_sept;
end
0 个评论
采纳的回答
Pavel
2019-2-13
Could you please show your data?
Have you tried to use quotes?
ncread(...,'sea ice concentration')
更多回答(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!