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

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 1

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 2

| A accepté

Réponse apportée
Eliminate or merge the sequences
ind = [1 find(diff(v) ~= 0)+1];

plus de 11 ans il y a | 0

Réponse apportée
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?...

plus de 11 ans il y a | 0

Réponse apportée
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....

plus de 11 ans il y a | 1

Réponse apportée
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...

plus de 11 ans il y a | 2

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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')));

plus de 11 ans il y a | 1

| A accepté

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

plus de 11 ans il y a | 2 réponses | 2

2

réponses

Réponse apportée
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...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
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')

plus de 11 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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'); ...

plus de 11 ans il y a | 0

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

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 7

| A accepté

Réponse apportée
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 ...

plus de 11 ans il y a | 3

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 8

| A accepté

Réponse apportée
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 ...

plus de 11 ans il y a | 0

Réponse apportée
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 ...

plus de 11 ans il y a | 1

Réponse apportée
Plotting tool for weighted digraphs
Perhaps <http://kellyakearney.net/matlabdoc/GeneralUtilities/gplotcolor.html gplotcolor.m> or <http://kellyakearney.net/matlabdo...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 5

| A accepté

Réponse apportée
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.

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 2

Réponse apportée
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>.

plus de 11 ans il y a | 0

Charger plus