Question


text function in 3d plots
I have a plot with 4 subplots, all of which are 3d surface plots. After I plot them, I need to insert text to the plot, showing ...

11 years ago | 1 answer | 0

1

answer

Question


Matlab generated figure does not show correctly in mac OS
I plotted all of my color figures (scatter or contourm) on my Windows machine and then pasted them into Microsoft Word. Then...

11 years ago | 0 answers | 0

0

answers

Question


blanks are not stored in strsplit
Below are two lines of my csv file L1 = 6,ABC,test,22.6 L2 = 7,ABC,,22.6 I am hoping to get the third element of each...

11 years ago | 1 answer | 0

1

answer

Question


How do I create clickable icons on a map?
I have many stations in the ocean, with data links. How do I create icons for each station and make them clickable, so that when...

12 years ago | 1 answer | 0

1

answer

Question


How to average a column based on another column?
For example, I have a two column data as below: 1945 23.5 1952 25.6 1952 25.9 1952 23.5 1957 26.7 ...

12 years ago | 1 answer | 0

1

answer

Question


How to get the frequency of a column of values
I have a column of data containing the study year of the sampling stations: 1950 1953 1953 1953 1957 1957 ...

12 years ago | 1 answer | 0

1

answer

Question


how to cover contour lines that extends beyond a polygon?
I first plot a color "contourf", and then plot one of the contour lines by using "contour". Because some of the contours extends...

12 years ago | 0 answers | 0

0

answers

Question


How to make contourf plots beyond a polygon invisible?
I use the below to plot a contourf of a geographic region (imagine it is the Mediterranean Sea). [X, Y] = meshgrid(linspa...

12 years ago | 1 answer | 0

1

answer

Question


Which function should I use to plot 2-D color figures out of a XYZ grid data results?
Below is my code: [X, Y] = meshgrid(110:0.5:300, -80:0.5:60); z_grid = griddata (double(lon), double(lat), double(z), X,...

12 years ago | 1 answer | 0

1

answer

Question


How to check if a pair of longitude and latitude is within an irregular circle?
I have an irregular circle with know boundary values (longitude and latitude). Imagine it is the boundary of Mediterranean Sea. ...

12 years ago | 1 answer | 0

1

answer

Question


How to load files identified by the matlab function of "dir"?
I have many files in a folder named "mat_files". What I want to do is to load the files and get their values. Below is my code: ...

12 years ago | 2 answers | 0

2

answers

Question


Problems when using textscan to read csv files
I have multiple csv files that needs to be loaded into Matlab. Below is my script. Weird enough, it works flawlessly for some of...

12 years ago | 2 answers | 0

2

answers

Question


How to get values out of an unknown structure array inside a *.mat file?
I have many *.mat files, each of them stores a structure array. I am trying to use the below commands to get the values out of...

12 years ago | 1 answer | 0

1

answer

Question


Question on the use of function 'load' to open a *.mat file
I have multiple *.mat files. So the filename is generated in a loop as below: File = ['hb', num2str(A(i)), '.mat']; When...

12 years ago | 1 answer | 0

1

answer

Question


Check for the existence of a variable inside a structure array
I have a structure array: data{1} = date: 19580508 lon: 159.3833 lat: -23.4667 ...

12 years ago | 1 answer | 0

1

answer

Question


World map that allows you to use fill to cover continents
I am plotting some parameters in a global map. Where can I find a world map that allows me to use Matlb's 'fill' function to cov...

12 years ago | 0 answers | 0

0

answers

Question


How to sort values and strings
I have a data set with several variables, their sizes are all (10000, 1), i.e., 10000 rows and 1 column. Stations are strings...

12 years ago | 1 answer | 0

1

answer

Question


Resolved: Need help for using textscan to read a csv file
Below is my code. I could not find any issues with that. But the results "tmp" are always empty {0x70 cell}. Please help. Th...

12 years ago | 1 answer | 0

1

answer

Question


How to blank data within a circle
I have some grid data (m*n matrix) of the surface ocean, extending to the land in some areas. I have the conterminous United Sta...

14 years ago | 1 answer | 0

1

answer

Question


How to find the total number of attributes attached to a variable in Matlab netcdf?
I am trying to write a loop (for i=1:m) to find all the attributes attached to each variable, but could not figure out how to fi...

14 years ago | 2 answers | 0

2

answers

Question


How to add a legend in Mapping toolbox
I am plotting several sets of longitude and latitude data in a world map. They are plotted as dots in different colors (each col...

14 years ago | 0 answers | 0

0

answers

Question


How to read data with unknown number of columns?
I have a csv file, it contains multiple data matrixes. It starts with 10-plus headerlines, a column data with n1 columns, then a...

14 years ago | 0 answers | 2

0

answers