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

casi 11 años hace | 0

| aceptada

Respondida
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...

casi 11 años hace | 2

| aceptada

Respondida
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...

casi 11 años hace | 1

Respondida
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...

casi 11 años hace | 0

Respondida
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...

casi 11 años hace | 2

| aceptada

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

casi 11 años hace | 0

Respondida
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?...

casi 11 años hace | 0

Respondida
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....

casi 11 años hace | 1

Respondida
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...

casi 11 años hace | 2

Respondida
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...

casi 11 años hace | 0

| aceptada

Respondida
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')));

casi 11 años hace | 1

| aceptada

Pregunta


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...

casi 11 años hace | 2 respuestas | 2

2

respuestas

Respondida
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...

casi 11 años hace | 1

| aceptada

Respondida
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')

alrededor de 11 años hace | 2

| aceptada

Respondida
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...

alrededor de 11 años hace | 0

| aceptada

Respondida
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...

alrededor de 11 años hace | 0

| aceptada

Respondida
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...

alrededor de 11 años hace | 0

| aceptada

Respondida
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'); ...

alrededor de 11 años hace | 0

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

alrededor de 11 años hace | 0

Respondida
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...

alrededor de 11 años hace | 7

| aceptada

Respondida
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 ...

alrededor de 11 años hace | 3

Respondida
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...

alrededor de 11 años hace | 0

Respondida
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...

alrededor de 11 años hace | 8

| aceptada

Respondida
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 ...

alrededor de 11 años hace | 0

Respondida
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 ...

alrededor de 11 años hace | 1

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

alrededor de 11 años hace | 1

| aceptada

Respondida
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...

alrededor de 11 años hace | 5

| aceptada

Respondida
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.

alrededor de 11 años hace | 0

Respondida
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...

alrededor de 11 años hace | 2

Respondida
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>.

alrededor de 11 años hace | 0

Cargar más