Answered
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...

15 years ago | 0

Answered
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. ...

15 years ago | 2

Answered
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...

15 years ago | 2

| accepted

Answered
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

15 years ago | 1

| accepted

Answered
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]...

15 years ago | 1

Answered
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...

15 years ago | 0

Answered
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);...

15 years ago | 0

Answered
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(...

15 years ago | 0

| accepted

Answered
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...

15 years ago | 0

Answered
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 ...

15 years ago | 2

Answered
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...

15 years ago | 1

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

15 years ago | 1

Answered
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...

15 years ago | 2

Answered
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...

15 years ago | 2

| accepted

Answered
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: ...

15 years ago | 1

Answered
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...

15 years ago | 0

Answered
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...

15 years ago | 0

| accepted

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

15 years ago | 0

| accepted

Answered
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...

15 years ago | 8

Submitted


aviread16bitcol
Reads in a 16-bit color avi movie

20 years ago | 1 download |

0.0 / 5