Plot or variables window?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Siehe auch
Kategorien
Mehr zu NetCDF finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!