Community Profile

photo

Michael


Last seen: etwa 2 Monate ago Active since 2015

Statistics

  • First Review
  • Thankful Level 2

View badges

Content Feed

View by

Answered
Finding the difference between one idex and the remaining indices
If you're using 2016a or earlier, you'll want to use bsxfun: >> A = [1 2 3 4 5]; >> bsxfun(@minus, A.', A) ans = ...

etwa 4 Jahre ago | 0

| accepted

Question


Finding the difference between one idex and the remaining indices
I have a vector: A = [1 2 3 4 5]; I want to find the difference between A(1) and the remaining indices: A(1) = 1; 1 - A...

etwa 4 Jahre ago | 1 answer | 0

1

answer

Question


How to load in NC file with '/directory/' like this before variables??
When loading in an nc file with this info: ncinfo(ncfile) Filename: '/directories/A2016105124000.L2_LAC_OC.x.nc' ...

etwa 5 Jahre ago | 0 answers | 0

0

answers

Question


This has bugged me for ages...How to stop MATLAB writing/drawing outside the plot area (I've tried past suggestions but no luck!!)
I have the plot attached. You can see on the right side text goes outside the box area and the scattered data at the top and bot...

mehr als 5 Jahre ago | 1 answer | 0

1

answer

Question


Plot google map with nice m_map borders / projections
I would like to create a google satellite image of an area using the function plot_google_map but with a fancy border or on a ce...

mehr als 5 Jahre ago | 0 answers | 0

0

answers

Question


Why funny straight lines contour plots? especially when saving..
I get strange lines when trying to save a plot with contour lines (see attached pic). How do I get rid of these straight lines? ...

mehr als 5 Jahre ago | 0 answers | 0

0

answers

Question


Contour lines over contourf 2D matrix
I would like to plot thick lines where y = n as a contour line on top of a contourf plot (like the image attached). How can I do...

mehr als 5 Jahre ago | 1 answer | 0

1

answer

Question


How do I shade plot area with increasing and decreasing shades of a color
Hello, I want to plot an area of a graph (x = 1:24, y = -1:1) with one color (black), which I then want to decrease/increase ...

fast 6 Jahre ago | 0 answers | 0

0

answers

Question


I can't change the contour colorbar of the font properties or contour labels!!!
This is my simplified code: h = axes; set(h,'position',[0.511805555555556 0.131326949384405 0.393194444444445 0.71545827...

etwa 6 Jahre ago | 0 answers | 0

0

answers

Question


Annotation position driving me mad!! changing the position values won't work...
I have a position for my annotation on an axis, but it keeps being placed in another location and changing the position values d...

etwa 6 Jahre ago | 2 answers | 0

2

answers

Question


How to do scatter/plot overlaying an imagesc/pcolor plot?
I have a matrix (200 x 200), which I do: imagesc(v(1:200),v2(1:200), matrix); This is an extrapolated Matrix, and now I wish to...

mehr als 6 Jahre ago | 1 answer | 0

1

answer

Question


How do I calibrate array in MATLAB using 3 variables??
I have: a = (1000,1) b = (1000,1) c = (1000,1) diff = (1000,1) a and b should have similar values (i.e. profile...

mehr als 6 Jahre ago | 1 answer | 0

1

answer

Question


I want to fill in the gaps in a matrix (extrapolation) and produce nice looking plots such as this ->
I have a plot attached (17.02.17) which was created using vectors and interpolation via binning (bindata2: http://xcorr.net/2013...

mehr als 6 Jahre ago | 2 answers | 0

2

answers

Question


create structure variable within loop using strings??
within a loop I would like to do something along the lines of the following: for dive = 1:10 for n = 1:3 ...

mehr als 6 Jahre ago | 2 answers | 0

2

answers

Question


How to add 'metadata' or similar to 3d gridded matrix on Matlab
I have created a 3D matrix 100x200x14 where; 100 = longitude 200 = depth 14 = time; and it seems to be fine, however...

mehr als 6 Jahre ago | 1 answer | 0

1

answer

Question


if any variables empty in workspace, continue?
There have been times when this would be useful... How can I continue in a for loop to the next index when any variable in th...

mehr als 6 Jahre ago | 1 answer | 0

1

answer

Question


How to bin data in 3 dimensions - 3/4 done but stuck!
I'm trying to create a 3d matrix gridded as depth x longitude x time with a field of temperature, so that I can select the data ...

mehr als 6 Jahre ago | 1 answer | 0

1

answer

Question


How do I interpolate usng vectors? and they are large..
I have a series of data points as vectors: depth, time, lon, & temperature all of the same size (6882 x 1), which I have obta...

mehr als 6 Jahre ago | 1 answer | 0

1

answer

Question


How to save values into a data structure within a loop?
Hello, I have a loop in which I find data points that are within a certain hour (e.g. 0 - 1 am) for a given day, and I want t...

fast 7 Jahre ago | 1 answer | 0

1

answer

Question


How to make the cleaner smoother loop for the following example?
d21a = DIC(d.station == 21); u = unique(d.depth(d.station == 21)); n = histc(d.depth(d.station == 21),u); uu = u(n>1); for...

fast 7 Jahre ago | 1 answer | 0

1

answer

Question


Read csv file into two ouput variables - text & numbers
I have inherited a script that reads in a csv file, where the first column is text and the other columns are numbers. For exampl...

fast 7 Jahre ago | 2 answers | 0

2

answers

Question


Problem using xlsread!! Unable to read XLS file - File is not in recognized format
Hello, I have inherited a script from someone which loads in an excel spread sheet in the format csv. However, I am stuck as ...

fast 7 Jahre ago | 1 answer | 0

1

answer