Professional Interests: ocean biogeochemistry, ecosystem modeling
Top 1% contributor
I suppose everyone will have their own preferences for what looks "really nice". I use pdflatex to write most of my articles, a...
Answered 9 months ago
I stopped updating my version of Matlab at R2013a due to the issue with fonts not rendering clearly on a MacBook Pro with Retina...
Asked 1 year ago
legendCell = cellstr(num2str(N', 'N=%-d'))
Answered 3 years ago
Try this: linenum = 3; % Or whichever line you wish to read textscan(fid, '%s', 1, 'delimiter', '\n', 'headerlines', linenum-1)...
4 years ago
I've found mmpolar to be pretty good for any polar plot customization: http://www.mathworks.com/matlabcentral/fileexchange/3885...
11 months ago
My guess is you created a variable named |min|
which min -all
Can you show the exact code you tried when calling |quiver| and |streamline|? And the specific error you see? Repeated x- and y...
The <http://www.mathworks.com/matlabcentral/fileexchange/34874-interparc interparc> function in the FEX makes this pretty easy:
I just encountered the following error, which appears consistently in a script of mine when trying to plot the last in a series ...
7 years ago
Is there a way to increase the maximum number of open files allowed at a given time?
For that matte...
Asked 8 months ago
Is there a way to explicitly close all open netcdf files, similar to
for open binary ...
Reason I used: "clear emcond" problem is length of "emcond" is not a constant, it changes with iteration. say for the first time...
snip some code> <snip some more code> ********** Why do you clear emcond after the first iteration? My guess is that the k ...
I wrote <https://github.com/kakearney/boxplot2-pkg |boxplot2|> to handle data like this; it plots boxplots similar to grouped ba...
Answered 22 days ago
You can get the position of the centers of each bar through the XOffset property:
hBar = bar(rand(10,5));
xb = bsxfun(@p...
Answered 1 month ago
I wrote the <http://www.mathworks.com/matlabcentral/fileexchange/29638-contourfcmap--filled-contour-plot-with-precise-colormap c...
Answered 5 months ago
My first instinct would be to transform the data from lat/lon coordinates into length/width coordinates, where length and width ...
Answered 7 months ago
Right now, your meshgird command is attempting to create 2 60000x60000 matrices... which are going to require around 26 GB each....
Answered 8 months ago
I reaally shouldn't be giving you the answer, since you've shown absolutely no effort to create this plot yourself. But I'm bor...
Assuming that |x|, |average|, and |average_2| are all row vectors
plot(x, average,'o', 'MarkerEdgeCo...
Answered 11 months ago
The all-increasing or all-decreasing issue you're encountering isn't a restriction of pchip, but rather of the |:| operator. If...
Answered 1 year ago
Do you mean you want the length of the axes to be the same, but with a 2:1 ratio? Try adjusting the aspect ratio:
x = 0:0.1...
Answered 4 years ago
I'm attempting to extract the polygons defined by a gridded mask, where the mask is defined pcolor-style, i.e. by the grid cell ...
Asked 2 years ago
Trying to read some data from Excel files into Matlab, but my files seem to be causing quite a few problems. I'm working on a M...
Asked 3 years ago
I agree that this is a feature I've always wanted. Manually setting labels is a huge pain, especially if you plan to zoom, pan,...
5 years ago
On "My File Exchange", in the Files tab, there still appears to be a list labeled "Comments and Ratings on XX's Files".
On a ...
Answered 28 days ago
Perhaps <http://kellyakearney.net/matlabdoc/GeneralUtilities/gplotcolor.html gplotcolor.m> or <http://kellyakearney.net/matlabdo...
The |inpolygon| function is included in base Matlab. If your polygons cover a small geographic area and don't cross the poles, ...
You can't use |==| with NaNs:
>> NaN == NaN
Use |isnan| instead:
B(isnan(A)) = NaN;
Answered 4 months ago
isgen = ~cellfun('isempty', regexp(restInfo.Name, '^genName'));
val1 val2 ...
Join the conversation