필터 지우기
필터 지우기

Info

This question is locked. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how extract two arrays in matlab of unequal length

조회 수: 5 (최근 30일)
KIRAN noor
KIRAN noor 2022년 11월 30일
Locked: Rena Berman 2024년 6월 5일
I have datasets of unequal length, like data file 1 has 47 data points and data file 2 has 649 data points , now i want diffence of these two curves, but I am looking for options , how to extract them.
I am attaching image of the plots.
please guide.
Regards,
Iqra
  댓글 수: 2
Rik
Rik 2023년 1월 24일
I recovered the removed content from the Google cache (something which anyone can do). Editing away your question is very rude. Someone spent time reading your question, understanding your issue, figuring out the solution, and writing an answer. Now you repay that kindness by ensuring that the next person with a similar question can't benefit from this answer.
Rena Berman
Rena Berman 2024년 6월 5일

(Answers Dev) Restored edit

채택된 답변

Matt J
Matt J 2022년 11월 30일
Yes interp1 to sample the curves at corresponding points. Then you can subtract them freely.
  댓글 수: 1
Matt J
Matt J 2022년 11월 30일
편집: Matt J 2022년 11월 30일
That shouldn't matter. You can interpolate at the same set of query points Xq,
result = interp1(X1,Y1,xq) - interp1(X2,Y2,xq)

추가 답변 (0개)

This question is locked.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by