matrix, plot

2 Ansichten (letzte 30 Tage)
Zied
Zied am 8 Sep. 2011
I have two variables: a matrix of raw data [5 x 786,198], which represents 786,198 spectra (5 wavelengths) and a matrix [1 x 7667] which represents the reference of the spectra that I want to plot among the raw data. How can i do this?
Thanks

Antworten (1)

Sean de Wolski
Sean de Wolski am 8 Sep. 2011
A = cumsum(rand(5,100)'); %5 channels
plot(A) %plot the 5 channels
hold on %hold the plot so it doesn't overwrite
plot(1:70); %plot a reference
Plot the 5 channels of the matrix and a reference vector.

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by