Answered
Interpolating to a known grid point
The |scatteredInterpolant| function will handle this; with a linear interpolation scheme, it basically does the plane-fitting ca...

11 years ago | 0

| accepted

Answered
Histogram Colors Not True
What is the |FaceAlpha| value of the child patch objects? It sounds as though it may be set to a value less than 1, which would...

11 years ago | 2

| accepted

Answered
polybool function works wrong
I see the correct empty result in R2015a, but the same not-quite-right results that I assume the original poster was seeing when...

11 years ago | 1

Answered
How can I redirect a script to take user input from a file instead of the keyboard?
Unless your input data is already in a separate file, it would probably be easier to just add that to your calling script, after...

11 years ago | 0

Answered
Color for points in scatter plot based on quadrants
You actually have several syntax errors in that script, but they're never being reached because of the way you've structured you...

11 years ago | 2

| accepted

Answered
Eliminate or merge the sequences
ind = [1 find(diff(v) ~= 0)+1];

11 years ago | 0

Answered
Adding map of the east coast to plotted lat/longs
Do you have the Mapping Toolbox? Do you actually have the data for a map already... geotiff, shapefile, or something like that?...

11 years ago | 0

Answered
Why do the plots on my mac look so different from the ones on my pc?
The graphics in Matlab were overhauled between release R2014a and R2014b. I'm assuming you mislabeled them in your description....

11 years ago | 1

Answered
how to analyze matlab grib files?
You mean GRIB files? Matlab doesn't handle GRIB format natively, so I recommend converting the files to netCDF if you want to r...

11 years ago | 2

Answered
How to change date in a for loop?
Not quite sure I understand the question, but you can definitely simplify that code significantly. If I understand it correctly...

11 years ago | 0

| accepted

Answered
How can I give legend to a plot as a series?
Example data: x = 1:10; h = plot(x, x'*p) Create legend: legend(h, cellstr(num2str(p', '%.2f')));

11 years ago | 1

| accepted

Question


Run parfor as for loop
In previous versions of Matlab, if I ran a parfor loop without first calling |matlabpool|, it would execute as a serial |for| lo...

11 years ago | 2 answers | 2

2

answers

Answered
plot legends with custom symbols
It might be easier to just play around with marker size/line width combos to get the same effect without duplicating the plotted...

11 years ago | 1

| accepted

Answered
Can two 201x1 arrays be added in matrix multiplication way to produce a 201x201 matrix?
Take a look at |bsxfun|: C = bsxfun(@plus, A, B')

11 years ago | 2

| accepted

Answered
help with using plotyy
So you want one predicted/experimental pair on one axis, and another predicted/experimental pair on the other axis? If so, plot...

11 years ago | 0

| accepted

Answered
Wrong patch using the Faces and Vertices properties when projected on map (patchm)
Last I checked, |patchm| doesn't accept face/vertex input data... (which is a pain in the ass, because plotting triangulated pat...

11 years ago | 0

| accepted

Answered
Concatenate generalized linear model objects
You can use cell arrays: fit = cell(3,1); fit{1} = fitglm(X,Y,'linear','distr','gamma','link','log'); fit{2} = fitglm...

11 years ago | 0

| accepted

Answered
Excel Functions (analyzing data individually)
Read all the data in, then take the average across dimension 2 (rows): data = xlsread('Caregivers.xlsx', 1, 'B2:K101'); ...

11 years ago | 0

Answered
How do I create nested lists?
I think you want cell arrays: objectLocations = {{activeA, [x0a, y0a], [x1a, y1a]}, ... {activeB, [x0...

11 years ago | 0

Answered
Multiple boxplots for a single plot
I wrote <https://github.com/kakearney/boxplot2-pkg |boxplot2|> to handle data like this; it plots boxplots similar to grouped ba...

11 years ago | 7

| accepted

Answered
File Exchange - Quickly see comments?
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 ...

11 years ago | 3

Answered
conditional colouring graph problem
An alternative method to Chad's (which works nicely if there's only one color switch, but may need some modification if there ar...

11 years ago | 0

Answered
How can i get all paths between two nodes ??
If you're looking for the shortest paths, there are a few FEX entries that implement algorithms for this, including both depth-f...

11 years ago | 8

| accepted

Answered
pcolor eps white line / diagonal polygon issue: Any sensible fix?!
It's hardly an ideal solution, but my way of dealing with this is to export two images: one with only the pcolor object visible ...

11 years ago | 0

Answered
plot one curve with two colors
If you plot with a patch rather than a line, you can get the color change. Depending on how much the y-values oscillate across ...

11 years ago | 1

Answered
Plotting tool for weighted digraphs
Perhaps <http://kellyakearney.net/matlabdoc/GeneralUtilities/gplotcolor.html gplotcolor.m> or <http://kellyakearney.net/matlabdo...

11 years ago | 1

| accepted

Answered
Grouped Bar Series Xdata in 2014b
You can get the position of the centers of each bar through the XOffset property: hBar = bar(rand(10,5)); xb = bsxfun(@p...

11 years ago | 5

| accepted

Answered
NCREAD reading GRIB2 files?
I don't believe |ncread| can read files via FTP, only OPeNDAP. You'll have to save the file locally before you can read it.

11 years ago | 0

Answered
The Woes of contourf patches, findobj, and Matlab 2014b.
Can I recommend <http://www.mathworks.com/matlabcentral/fileexchange/29638-contourfcmap--filled-contour-plot-with-precise-colorm...

11 years ago | 2

Answered
can't use function m_lldist
The |m_lldist| function is part of the m_map toolbox, which is available <http://www.eos.ubc.ca/~rich/map.html here>.

11 years ago | 0

Load more