답변 있음
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...

12년 초과 전 | 0

| 수락됨

답변 있음
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...

12년 초과 전 | 0

| 수락됨

답변 있음
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...

12년 초과 전 | 0

답변 있음
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...

12년 초과 전 | 0

답변 있음
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...

12년 초과 전 | 1

| 수락됨

답변 있음
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...

12년 초과 전 | 1

답변 있음
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] =...

12년 초과 전 | 0

| 수락됨

답변 있음
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 ...

12년 초과 전 | 1

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

12년 초과 전 | 0

답변 있음
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...

12년 초과 전 | 0

답변 있음
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...

12년 초과 전 | 0

답변 있음
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...

12년 초과 전 | 1

| 수락됨

답변 있음
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...

12년 초과 전 | 1

| 수락됨

답변 있음
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); ...

12년 초과 전 | 0

| 수락됨

답변 있음
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...

12년 초과 전 | 2

| 수락됨

답변 있음
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...

12년 초과 전 | 0

| 수락됨

답변 있음
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.

12년 초과 전 | 1

답변 있음
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...

12년 초과 전 | 0

답변 있음
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 = ...

12년 초과 전 | 0

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

12년 초과 전 | 0

답변 있음
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') ...

12년 초과 전 | 0

답변 있음
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 ...

12년 초과 전 | 0

답변 있음
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...

12년 초과 전 | 0

| 수락됨

답변 있음
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 =...

12년 초과 전 | 1

| 수락됨

답변 있음
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, ...

12년 초과 전 | 0

| 수락됨

답변 있음
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...

12년 초과 전 | 0

| 수락됨

답변 있음
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...

12년 초과 전 | 0

| 수락됨

답변 있음
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...

12년 초과 전 | 1

답변 있음
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...

12년 초과 전 | 0

| 수락됨

더 보기