How to ncread a variable with spaces in its title?

3 views (last 30 days)
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

Accepted Answer

Pavel
Pavel on 13 Feb 2019
Could you please show your data?
Have you tried to use quotes?
ncread(...,'sea ice concentration')
  2 Comments
Mikolaj Jankowski
Mikolaj Jankowski on 13 Feb 2019
File itself is too big to upload, even in zipfile

Sign in to comment.

More Answers (0)

Categories

Find more on Coordinate Reference Systems in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!