Michael
Followers: 0 Following: 0
Feeds
답변 있음
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 = ...
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 = ...
거의 7년 전 | 0
| 수락됨
질문
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...
거의 7년 전 | 답변 수: 1 | 0
1
답변질문
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' ...
대략 8년 전 | 답변 수: 0 | 0
0
답변질문
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...
대략 8년 전 | 답변 수: 1 | 0
1
답변질문
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...
8년 초과 전 | 답변 수: 0 | 0
0
답변질문
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? ...
8년 초과 전 | 답변 수: 0 | 0
0
답변질문
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...
8년 초과 전 | 답변 수: 1 | 0
1
답변질문
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 ...
거의 9년 전 | 답변 수: 0 | 0
0
답변질문
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...
거의 9년 전 | 답변 수: 0 | 0
0
답변질문
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...
대략 9년 전 | 답변 수: 2 | 0
2
답변질문
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...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
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...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
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...
9년 초과 전 | 답변 수: 2 | 0
2
답변질문
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 ...
9년 초과 전 | 답변 수: 2 | 0
2
답변질문
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...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
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...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
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 ...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
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...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
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...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
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...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
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...
거의 10년 전 | 답변 수: 2 | 0
2
답변질문
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 ...
거의 10년 전 | 답변 수: 1 | 0