axis X and Y code

조회 수: 12 (최근 30일)
farah
farah 2016년 10월 16일
댓글: farah 2016년 10월 16일
Hi, how to take value from X axis on Waveform 1 and take value from Y axis of waveform 2 to plot in one waveform? the code?

답변 (1개)

Image Analyst
Image Analyst 2016년 10월 16일
편집: Image Analyst 2016년 10월 16일
Exactly what is Waveform 1 and waveform 2? If you plotted them in an axes, you know the x and y signals. For example
subplot(2, 2, 1);
plot(x1, y1);
subplot(2, 2, 2);
plot(x2, y2);
subplot(2, 2, 3);
plot(x1, y2); % Plot y2 using axis of x1.
Or maybe you want to use interp1() to sample y2 at the locations of elements of x1?
  댓글 수: 5
Image Analyst
Image Analyst 2016년 10월 16일
I didn't understand that. Are you saying that you have another array, say x1, that says what the x value of each element of waveform1 is?
farah
farah 2016년 10월 16일
No No. For waveform1 obtain from workspace (Amplitude=Y-axis) and (Time=X-axis). For waveform2 obtain from decompose wavelet (Detail Coefficient=Y-axis) and (Array sample=X-axis))
Now I want to plot new waveform3 which contains (detail coefficient= Y-axis and Time=X-axis)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Hilbert and Walsh-Hadamard Transforms에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by