Plot 2D data and enhance visualization?

I need to plot two large matrices together and "enhance" visualization. I know how to smooth, but am supposed to end with a plot that looks like the attached file "plot.jpg." However, I keep getting what I attached as "24JUN.jpg." Data files are too large to attach. Here is what I have for code:
c=load('24jun015.tda');
d=load('24jun019.tda');
altitude15=c(2:875,2:562);
altitude19=d(2:516, 2:562);
x3=smoothdata(altitude15);
x4=smoothdata(altitude19);
x5=c(2:40,2:40);
%plotting smoothened version of 24JUN015
figure;
subplot(2,1,1)
plot(x3)
title('24JUN015')
xlabel('Time (seconds)')
ylabel('Altitude')
%plotting smoothened version of 24JUN015
subplot(2,1,2)
plot(x4)
title('24JUN019')
xlabel('Time (seconds)')
ylabel('Altitude')
%plotting smoothened versions together with axis constraints
figure;
plot(x3);
hold on;
plot(x4);
axis ([0 500 0 1100])

1 comentario

Walter Roberson
Walter Roberson el 31 de Oct. de 2017
You are asking to do 561 line plots, one for each column of x3. The plot given as desired is clearly not a line plot. Perhaps you are looking for imagesc()

Iniciar sesión para comentar.

Respuestas (0)

Preguntada:

el 31 de Oct. de 2017

Comentada:

el 31 de Oct. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by