Why work space matrix values correct for matrix xx(56,24) but not when listed in command window?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Clive Dorman
le 11 Mar 2022
Commenté : Clive Dorman
le 11 Mar 2022
A matrix xx(56. 24) has correct values in workspace but not in command window. However, xx has correct values in command window if listed as a single row vector, as xx(10,:), but not if listed as a single column vector xx(:,10), and not if listed as complete matrix xx(:,:), or simply xx. New values in xx in command window have swapped out all real temperature data with zeros. However, values in command window keeps correct values of -9.99 which are coastlines and in their correct matrix location so that the coastline is plotted correctly with contour(lon, lat, xx), but not temperature data.
Matrix was initially read in by xx = ncread(filename,'sst'). The lat and lon read in by same method were correct in command window and workspace.
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!