Plot or variables window?
2 次查看(过去 30 天)
显示 更早的评论
I'm using Matlab R2017a to create a dataset consisting of several netcdf files for using them in an algorithm written in Python later.
When checking the orientation of an array I found a strange issue, I don't know if it is a bug or no. The problem is that the results of viewing the array through the variables window and plotting them are mirror images of each other. I attach two pictures below to show the issue.
Variables window (I just copied the values and pasted them into Excel to illustrate them better).
Plot (contorf).
Which representation is the correct one? How to check it? It is really important for my project.
I attached the zip file with an example netcdf file and the code to extract the variable from the figures shown.
swh=ncread('interim1.nc','swh');
swh1=squeeze(swh(:, : ,1));
swh1=rot90(swh1);
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 NetCDF 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!