Respondida
create direction based polygons
I think |inpolygon| is overkill in this case; you really only need to know the azimuth between your center point and the target ...

casi 12 años hace | 1

| aceptada

Respondida
Creat time series with real calendar
Are you sure you have data for every day in that range, assuming 30-day months? By my calculation, that would be 1450 months, o...

casi 12 años hace | 1

Respondida
The min function is not working, but the max function is. Help
My guess is you created a variable named |min| Type which min -all to check.

casi 12 años hace | 5

| aceptada

Respondida
How to Plot Path lines
Can you show the exact code you tried when calling |quiver| and |streamline|? And the specific error you see? Repeated x- and y...

casi 12 años hace | 3

| aceptada

Respondida
How do I set up a project or solution?
I don't know of any way to do that in the Matlab editor. If you're on a Mac, you could try TextMate with the matlab bundle. Tex...

casi 12 años hace | 0

Respondida
How can I see matlab results on google earth?
If you have the Mapping Toolbox, it comes with a few functions: |kmlwrite|, |kmlwriteline|, |kmlwritepoint|. If not, there ar...

casi 12 años hace | 1

| aceptada

Respondida
Problem using shapefile in matlab
I don't see anything wrong with that code, and substituting another shapefile works fine. Can you show us the details of |M|? ...

casi 12 años hace | 0

Respondida
how to show my output data in map.
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...

casi 12 años hace | 4

| aceptada

Respondida
How to plot a stack of curves in Matlab, as attached figure?
The easiest way is probably just to add a small offset to the ydata: nx = 100; ny = 50; ysig = rand(nx,1); ...

casi 12 años hace | 1

Respondida
For intersecting circles, how to remove overlap and have chord visible? Also, how to randomly generate circle position in design space?
If you have the mapping toolbox, try |polybool|. If you don't, try <http://www.mathworks.com/matlabcentral/fileexchange/8818-po...

casi 12 años hace | 0

Respondida
How to make nice plots?
I suppose everyone will have their own preferences for what looks "really nice". I use pdflatex to write most of my articles, a...

casi 12 años hace | 5

| aceptada

Respondida
Problems doing subplot command while using mmpolar function
The |axes| command creates a new axis, and if you don't specify a position, it assumes the default position in the center of the...

casi 12 años hace | 0

| aceptada

Respondida
Creating random points along polygon boundary?
The <http://www.mathworks.com/matlabcentral/fileexchange/34874-interparc interparc> function in the FEX makes this pretty easy: ...

casi 12 años hace | 3

| aceptada

Respondida
How to plot MESH only in black?
mesh(x,y,z, 'edgecolor', 'k')

casi 12 años hace | 8

Respondida
problem with x-axis labels after overlapping 2 box plots
The answer to the "why" is that boxplot, for reasons I've never been able to figure out, doesn't just change the tick positions ...

casi 12 años hace | 0

| aceptada

Respondida
plot scientific data for one specific country
The exact method would depend on the type of data (points? polygons?). To get you started, I'd look at |inpolygon|, |polybool...

casi 12 años hace | 0

Respondida
Logical indexing and sums
Meet accumarray, my favorite powerful-and-useful-but-terribly-named function (and lately, seemingly the answer to every question...

casi 12 años hace | 0

| aceptada

Respondida
Confusion about the representation of Root Mean Square, R Squared ...
Root mean squared error is sqrt(mean((xobs - xpre).^2)) where |xobs| is the input dataset, and |xpre| are the values pre...

casi 12 años hace | 1

Respondida
How to partition a matrix into components that are independent?
help corr Will calculate linear correlation between columns of a matrix.

casi 12 años hace | 0

Respondida
Read all text files in folder (nonsequential)
F = dir('*.dat'); for ii = 1:length(F) fid = fopen(F(ii).name); end By the way, if they are sequential, a clean...

casi 12 años hace | 1

| aceptada

Respondida
Binning CTD data into 10m intervals and corresponding data in separate columns
I think pairing histc with accumarray will help: x = rand(100,6); x(:,1) = 1:100; x(:,2) = sort(x(:,2))*100; % Some ...

casi 12 años hace | 1

| aceptada

Respondida
Circle plan using plot and pcolor
My first thought would be to layer two axes on top of each other: one for the polar plot and any line objects that can be plotte...

casi 12 años hace | 0

| aceptada

Respondida
Symbol issue superposing plot and pcolor
When you add pcolor plots to an axis, which changes/sets the shading scheme used by the axis, it can sometimes change the way th...

casi 12 años hace | 0

| aceptada

Respondida
How can I plot multiple areas in the same graph?
Here's an example of the stacking area plots idea: % Sample data data = bsxfun(@plus, normpdf(linspace(0,6,100), 2, ...

casi 12 años hace | 2

| aceptada

Respondida
How to pass in a list of variables to "load" function without using eval?
Don't need the sprintf at all, as long as |petList| is already a cell array of strings: PS = load(filePets, petList{:});

casi 12 años hace | 0

| aceptada

Respondida
PColor: Why doesn't it work for non-evenly distributed x-vectors?
That's the opengl renderer acting up... quick fix: set(gcf, 'renderer', 'zbuffer'); More complicated fix: <http://www....

alrededor de 12 años hace | 1

Respondida
Averaging data series every 10 seconds
Do you mean you want to average data that falls within certain intervals, for all datasets? If so, accumarray paired with histc...

alrededor de 12 años hace | 0

Respondida
pad vector between its values
If you have the Mapping Toolbox, |interpm| will do that: a2 = interpm(a, ones(size(a)), 1.025) It's not exactly the same ...

alrededor de 12 años hace | 2

Respondida
Finding values based on coordinates
If you have the Statistics Toolbox, take a look at |knnsearch|. Depending on the geographic extent of your coordinates, you may...

alrededor de 12 años hace | 0

| aceptada

Cargar más