How to plot two 1-D array 's

3 Ansichten (letzte 30 Tage)
Phillip Creemers
Phillip Creemers am 15 Mär. 2012
I have two 1-D array's of 3200x1 one is L, that represents the light intensety and zadj that represent the error. I now want to draw a graf that shows me the error in function of the light intensety. I also want the function through these data points. The array's are not sorted by value. Can i do this with a interpolation ?
Kind regards

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 15 Mär. 2012
scatter(L, zadj);
or
[Lsort, Lorder] = sort(L);
plot(Lsort, zadj(Lorder));
"The function through these data points" is not well defined. There are literally an infinite number of different functions that perfectly fit any finite set of data points.

Weitere Antworten (0)

Kategorien

Mehr zu Interpolation finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by