Answered
read variable lon and lat in group larvae in netcdf4 a.nc
You can read a variable |'variablename'| in a group |'/groupname/'| using |'/groupname/variablename|' as the argument for the va...

12 years ago | 7

Answered
Creating a random game of dice
A for loop needs an index variable and a set of values to loop through. Check out the documentation <http://www.mathworks.com/he...

12 years ago | 0

| accepted

Answered
How to plot several sets (in different colours) with stem3-plotting function?
You can use <http://www.mathworks.com/help/releases/R2013b/matlab/ref/hold.html |hold|> to overlay multiple plots on one set of ...

12 years ago | 1

| accepted

Answered
New x- and y-data after rotation, using view(-90,90) and set(gca, 'YDir', reverse')
The functions that you are using affect the way the axes are drawn on a figure, not the underlining data. If all you want to do ...

12 years ago | 0

Answered
K-means for stock market timeseries
The function <http://www.mathworks.com/help/releases/R2013b/stats/kmeans.html |kmeans|> is part of the Statistics Toolbox in MAT...

12 years ago | 0

| accepted

Answered
How do I select a window of pixels around a pixel?
You can <http://www.mathworks.com/help/matlab/math/matrix-indexing.html#f1-85544 access multiple elements of a matrix> using a v...

12 years ago | 2

| accepted

Answered
Textscan File and ignoring the newline characters
You should use |%q| instead of |%s| when double quotation marks are used to indicate text that you want to keep together. Additi...

12 years ago | 3

| accepted

Answered
Element wise multiplication of vectors within matrices when multiplying matrices.
One way to perform the desired operation is to use a for loop to iterate through the third dimension of |M1| and |M2| and perfor...

12 years ago | 0

Answered
How to edit histograms?
You can plot multiple histograms on a single set of axes using the <http://www.mathworks.com/help/releases/R2013b/matlab/ref/hol...

12 years ago | 0

| accepted