Submitted


rgbmap color maps
Create color maps from actual names that people use for colors.

12 years ago | 3 downloads |

5.0 / 5
Thumbnail

Answered
How do I make a plot with specific RGB color values for each marker from the same data set?
The |scatter| function accepts rgb color values corresponding to each point. It'll help you avoid using a loop.

12 years ago | 1

Answered
filt vs. filtfilt very different output
I'm not very familiar with the behavior of Chebyshev but the |filtfilt| function filters forward, then backward, resulting in ze...

12 years ago | 0

Answered
Need help regarding internal linking in Publishing help.
Try % <matlab:doc('sum') SUM> is also a function.

12 years ago | 0

Submitted


disthist
Simply show a histogram of distances between geographic waypoints.

12 years ago | 1 download |

0.0 / 5
Thumbnail

Answered
Transparent plane over on object
I can think of two possible problems. If you're plotting the object after plotting the plane, the plane will disappear if you d...

12 years ago | 1

| accepted

Answered
how to write years in xtick.
If your x vector is in |datenum| format, you can use |datetick('x','yyyy')|.

12 years ago | 2

Question


Where can I find a list of built-in example data?
When I come up with examples for functions that I write, the first several lines of my example files are often spent creating fa...

12 years ago | 2 answers | 0

2

answers

Answered
Can I draw outside of a figure/axes?
Have you tried <http://www.amazon.com/Sharpie-Fine-Tip-Permanent-24-Pack-Assorted/dp/B0003WN0DO these>? They should work on des...

12 years ago | 4

Submitted


interpm2
Densify or interpolate along paths with approximately equal spacing in meters or kilometers.

12 years ago | 2 downloads |

5.0 / 5
Thumbnail

Answered
Having trouble with quiver3() Sizing issues
From the documentation for |quiver3|, "The matrices X,Y,Z,U,V,W must all be the same size..." In your code, x and y are 1x100, ...

12 years ago | 0

Answered
load large data set from text file
June--Use |textscan| to load your data, like fid = fopen('mydata.txt'); DATA = textscan(fid,'%f %f %f'); fclose(fi...

12 years ago | 0

Answered
Help interpolating irregular time series to regular time series
Letting t be column 1 and x be column 2, interpolate values xi corresponding to ti: ti = yourStartingTime + 0:.010:3; ...

12 years ago | 0

| accepted

Answered
Txt file to NetCDF file
<http://www.mathworks.com/help/matlab/ref/ncwrite.html ncwrite> can do it.

12 years ago | 0

| accepted

Answered
Fitting curve through data set
Given data at |x| and |y|, if you want a _ytrend = m(xtrend) + b_ slope intercept form of the trend line, you can get it by ...

12 years ago | 0

| accepted

Answered
How to multiply a window function to one dimension?
Since you didn't give us your |fids| or |window| data, I'll make them up: fids = rand(4,5,6,7,8,9); window = 2*ones(1,...

12 years ago | 0

| accepted

Answered
filter my frequencies need help
If you know your filter parameters and you want to skip the middle step, <www.mathworks.com/matlabcentral/fileexchange/38584 thi...

12 years ago | 0

Answered
interpolation vector with a lot of duplicate values
y1 = [350 770 800 920 970 990 1020 1054 1080 1100]; x1 = [10 10 11 14 13 12 10 10 10 7]; x2 = [10 10 13 13 15 13 13...

12 years ago | 0

Answered
interpolation vector with a lot of duplicate values
I don't think interpolation would be appropriate here. You could fit a best-fit line using a least-squares solution, then plug ...

12 years ago | 0

Answered
Cloud of point in a plane ?
I think what John is saying is that if you have an equation for your plane, say, Z(x,y) = 5x + 3y -2, and you have the (x,y) val...

12 years ago | 0

Answered
after fundamentals what is the next course for a physics student?
Better than books if you're trying to get comfortable with Matlab and/or refine your skills: <https://www.mathworks.com/matlabce...

12 years ago | 0

Answered
curve distorted with time
Your time vector |x_data_summer| is not evenly spaced. When you only plot the |raw_summer_0mean| data, Matlab is assuming the x...

12 years ago | 1

| accepted

Answered
after fundamentals what is the next course for a physics student?
My personal opinion is if you've gone through that whole book you've got more than enough foundation to start tackling any probl...

12 years ago | 0

Question


Keyboard shortcut to evaluate current line?
I often use a keyboard shortcut to evaluate highlighted selections of a script I'm working on. But often, I will add a single l...

12 years ago | 7 answers | 13

7

answers

Answered
How do I loop through files saved in my workspace?
It's a clunky solution, but you could save your variables in .mat files, then load them like for k = 1:5 load(['varia...

12 years ago | 0

Question


can this loop be vectorized?
Here's a simplified example of some data I have. I'd like to eliminate the loop because my |x| and |y| arrays in reality have t...

12 years ago | 4 answers | 3

4

answers

Answered
plot scientific data for one specific country
If you have the outline of China's borders you could use |inpolygon|.

12 years ago | 0

Answered
Rasterread Out of range or non-integer values truncated during conversion to character
I can't find any documentation for a function called |rasterread|. Can you simply read in the file using load or import?

12 years ago | 0

Answered
How to create a yearly trend map of climatic data
<http://www.mathworks.com/matlabcentral/fileexchange/46363-trend This> 'll do it.

12 years ago | 1

Answered
How to remove seasonal component from a time series using filter??
<http://www.mathworks.com/matlabcentral/fileexchange/43222-deseason Here's a function> that offers a slightly clunky, but common...

12 years ago | 1

Load more