plot 2D array using imagesc ?

1 Ansicht (letzte 30 Tage)
JIAN HONG ZHANG
JIAN HONG ZHANG am 17 Mai 2022
Beantwortet: KSSV am 17 Mai 2022
how to be like him plot 2D array using imagesc?
%The number of sample in the signal
N=640;
n=0:N-1;
fo=1/640;
%The signal x whose amplitude exceeds the range [-pi,pi]
x=5*sin(2*pi*fo*n);
plot(x);
xlabel('Sample index')
ylabel('Original phase in radians')
axis([-50 710 -5.6 5.6])
title('The signal x whose amplitude exceeds the range [-\pi,\pi]')
figure, plot(x)
xlabel('Sample index')
ylabel('Unwrapped phase in radians')
axis([-50 710 -5.6 5.6])
title('The unwrapped phase')
x = 5*sin(2*pi*fo*n);
imagesc(x)
colorbar

Akzeptierte Antwort

KSSV
KSSV am 17 Mai 2022
REad about subplot

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots 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