답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 2

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 2

| 수락됨

답변 있음
Eliminate or merge the sequences
ind = [1 find(diff(v) ~= 0)+1];

11년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 2

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

질문


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년 초과 전 | 답변 수: 2 | 2

2

답변

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 2

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

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

11년 초과 전 | 0

답변 있음
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년 초과 전 | 7

| 수락됨

답변 있음
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년 초과 전 | 3

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 8

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

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

11년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 5

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 2

답변 있음
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년 초과 전 | 0

더 보기