Respondida
Bar plot... problem with * marks
The stars are an odd peculiarity of the |'histc'| option... I'm not sure what the original programmer's motivation was, but if y...

alrededor de 12 años hace | 0

| aceptada

Respondida
Issues with legend on a plot?
If I understand your setup correctly, I think the problem is that you want your legend to reference the individual points of a s...

alrededor de 12 años hace | 0

| aceptada

Respondida
Importing an ascii file in to matlab
What are the dimensions of your grid? Your probably going to have to divide your grid into smaller blocks to do the calculation...

alrededor de 12 años hace | 0

Respondida
Reading in data from an irregular text file
If every entry always ends with the =, then that makes things much easier to parse. I think you should be able to grab what you...

alrededor de 12 años hace | 0

Respondida
A plot with four subplots (quadrants)
There are several options of the file exchange to alter the spacing/margins/etc. of subplots (e.g. <http://www.mathworks.com/mat...

alrededor de 12 años hace | 1

| aceptada

Respondida
How to set datetick at 10 minute intervals when data starts at random times
I wrote this a little function ( <http://kellyakearney.net/matlabdoc/GeneralUtilities/datelist.html datelist.m> ) for exactly th...

alrededor de 12 años hace | 1

Respondida
Neglecting bad data points; NaN; imresize
Here's a suggestion to replace the imresize call, using |histc| and |accumarray|: fac = 0.5; dx = 1./fac; [r,c] =...

alrededor de 12 años hace | 0

| aceptada

Respondida
DYLD_LIBRARY_PATH problem
This is probably not the Mathworks-recommended way of doing things, but my solution to system path issues was to add source ...

alrededor de 12 años hace | 1

Respondida
Surface plot problem with mesh
The <http://www.mathworks.com/matlabcentral/fileexchange/9315-wireframe wireframe> function will give the effect you're looking ...

alrededor de 12 años hace | 0

Respondida
Plot a Colour Wheel scale
A simpler way: r = linspace(0,1,10); theta = linspace(0, 2*pi, 100); [rg, thg] = meshgrid(r,theta); [x,y] = pol2ca...

alrededor de 12 años hace | 0

Respondida
Interpolation of temperature with pressure
Assuming |temp| and |pressure| are your vectors, you need to use the non-missing values to interpolate the missing ones: is...

alrededor de 12 años hace | 0

Respondida
Seperate column into more columns: 90740x1 double array into 1511x64 something array
Your code is erroring because of mismatched dimensions; when |n = 2|, |1:n:1511| expands to |[1 3 5 ... 1511]|, which is only 75...

alrededor de 12 años hace | 1

| aceptada

Respondida
Setting specific colorbar limits using coneplot
You need to set the clim value of all your axes to be the same. It'll be easiest if you save the handles to your axes: h(1...

alrededor de 12 años hace | 1

| aceptada

Respondida
How to accumulate to a vector-indexed array?
I don't see anything wrong with the syntax you proposed... L = rand(100,1); R = rand(100,1); K = randperm(100); ...

alrededor de 12 años hace | 0

| aceptada

Respondida
How can a draw a line between two points?
Assuming that |x|, |average|, and |average_2| are all row vectors axes; hold on; plot(x, average,'o', 'MarkerEdgeCo...

alrededor de 12 años hace | 2

| aceptada

Respondida
nothing show up when plotting with pcolor in 2D
The syntax is fine, so it should work. Possibly OpenGL issues? Try: figure; pcolor(X,Y,Z); set(gcf, 'renderer', 'zb...

alrededor de 12 años hace | 0

| aceptada

Respondida
Is K-means cluster randomly each call time?
By default, kmeans chooses its starting points at random. Take a look at the |'Start'| option for details.

alrededor de 12 años hace | 1

Respondida
Legend - position command & printing
I don't see any changes in your above example. However, a few things to check: * Make sure the figure's PaperPositionMode is...

alrededor de 12 años hace | 0

Respondida
Copy part of an cell array(double) into a new column next to it
V = [... 231 234 232 230 229]; V(:,2) = 0; V(V(:,1)>230,2) = V(V(:,1)>230,1) Results: V = ...

alrededor de 12 años hace | 0

Respondida
a specific colormap for filled contour plot
I like <http://www.mathworks.com/matlabcentral/fileexchange/7144-usercolormap usercolormap> to create quick, reusable colormaps....

alrededor de 12 años hace | 0

Respondida
Set(...'facealpha'..) gives me a very odd problem
When alpha causes weird behavior, my first instinct is to check the renderer. If you run set(gcf, 'renderer', 'zbuffer') ...

alrededor de 12 años hace | 0

Respondida
depfun finds unrelated dependancies
I stopped using depfun years ago... I find it often makes these sort of mistakes, where it latches on to a shadowed function or ...

alrededor de 12 años hace | 0

Respondida
What's the matter!
My guess is you're reusing a variable name, for example a = 1; a.b = 2; The warning is letting you know that by assigni...

alrededor de 12 años hace | 0

| aceptada

Respondida
wind vector arrows color coding
Compass produces individual line object, not tied to a colormap, so you'll have to do the color-matching yourself: wdir =...

alrededor de 12 años hace | 1

| aceptada

Respondida
geoshow cuts off grid data
Unfortunately, all the mapping toolbox plotting functions clip data to the map frame. If part of a line segment, patch object, ...

alrededor de 12 años hace | 0

| aceptada

Respondida
Beginner - can't get plot/graph of "discrete logistic model"...
In your first example, you haven't shown us what value you used for y(1). Make sure to set y(1) = 0.2; before running t...

alrededor de 12 años hace | 0

| aceptada

Respondida
Avoid squeeze of a matrix???
Matlab's convention is to not show trailing singleton dimensions, but that doesn't mean they don't exist (this is different from...

más de 12 años hace | 0

| aceptada

Respondida
Can REGEXP or TEXTSCAN be used to split 2 distinct data sets from a single text file?
Assuming the answer to per's question is yes, then here's an example: % Read text fid = fopen('test.txt'); data = t...

más de 12 años hace | 1

Respondida
Access cell array inside another cell array
The anonymous function used in cellfun is applied to each element of A, so the input it expects in your case would be a 1 x 2 ce...

más de 12 años hace | 0

| aceptada

Cargar más