Réponse apportée
Patch with holes
If you have the Mapping Toolbox, look at poly2fv, then plot using patch's face/vertex syntax. This function uses a mex-ed ver...

environ 15 ans il y a | 0

Réponse apportée
Detecting gaps in time series data and replacing with NaN
I assume that your measurement times are not necessarily exact, so I've built in some tolerance for error in the example below. ...

environ 15 ans il y a | 2

Réponse apportée
Plotting antenna field patterns in spherical coordinates
Why do you think your array needs to be square? Mesh, surf, etc. will accept any gridded data. Assuming your A values represen...

environ 15 ans il y a | 2

| A accepté

Réponse apportée
making a text figure
It sounds like something might be overshadowing Matlab's text function. What do you get with this command? which text -all

environ 15 ans il y a | 1

| A accepté

Réponse apportée
Colormap and plot with nxn matrices
You can use a patch to make a color-changing line: x = rand(10,1); y = rand(10,1); z = rand(10,1); hp = patch([x' NaN]...

environ 15 ans il y a | 1

Réponse apportée
Using textscan to read in from a common format .txt file
With the code above, you're telling Matlab to read one line (with fgetl) and throw it away. Then you resume reading the file bu...

environ 15 ans il y a | 0

Réponse apportée
Using ODE45 to solve a system of ODEs
You could try interpolating within your a, b, and c datasets. function dy = myODE(t,y,a,b,c) at = interp1(0:1000, a, t);...

environ 15 ans il y a | 0

Réponse apportée
using worldmap in 0 to 360 longitude
Instead of using worldmap, use axesm to manually create an axis with the limits you want: % Some fake data data = peaks(...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Matlab is confused between line (function) and line (variable)
Are you sure you've defined the line variable prior to your Nameyout definition? And are you defining it as above, or poofing i...

environ 15 ans il y a | 0

Réponse apportée
How to open a second instance of MATLAB in Mac OS X?
From a terminal window, run /Applications/MATLAB_R2010a.app/bin/matlab (or whatever the applicable location of the matlab shell ...

environ 15 ans il y a | 2

Réponse apportée
wanted: function for drawing simple network diagrams
If you're okay with straight edges in the graphs (i.e. no need to route edges around nodes or anything like that), you can proba...

environ 15 ans il y a | 1

Réponse apportée
axes tick in scientific notation
You could try <http://www.mathworks.com/matlabcentral/fileexchange/16003-tick2text-create-easy-to-customize-tick-labels tick2tex...

environ 15 ans il y a | 1

Réponse apportée
Please vote if you want to have M-function in M-script
I support this wholeheartedly. I've seen the issue come up many times on the newsgroup, and yet I've never heard a convincing a...

plus de 15 ans il y a | 2

Réponse apportée
how to put two different units on my axis
Do you mean you want the length of the axes to be the same, but with a 2:1 ratio? Try adjusting the aspect ratio: x = 0:0.1...

plus de 15 ans il y a | 2

| A accepté

Réponse apportée
ETOPO1 Question
A reference vector is simply a 1 x 3 vector: [cells/degree north-latitude west-longitude] So in your case, this would be: ...

plus de 15 ans il y a | 1

Réponse apportée
Using fprintf for .txt file
Possibly endline issues? I know a lot of software is picky about \n vs \r vs \r\n, and you may be modifying that when you resav...

plus de 15 ans il y a | 0

Réponse apportée
What is wrong with the code?
The uigetdir function is being called on line 2 of your function, prior to existing_chk ever being called, since you have not en...

plus de 15 ans il y a | 0

| A accepté

Réponse apportée
Georeferencing
You can use worldfileread to read the data into a referencing matrix, which can then be used to calculate coordinates for any pi...

plus de 15 ans il y a | 0

| A accepté

Réponse apportée
getting the axis position correctly
I wrote a little function that analyzes the aspect ratios and calculates the plotted axis region: http://www.mathworks.com/ma...

plus de 15 ans il y a | 8

A soumis


aviread16bitcol
Reads in a 16-bit color avi movie

plus de 20 ans il y a | 1615 téléchargements |

0.0 / 5