Borrar filtros
Borrar filtros

Info

This question is locked. Vuélvala a abrir para editarla o responderla.

how extract two arrays in matlab of unequal length

1 visualización (últimos 30 días)
KIRAN noor
KIRAN noor el 30 de Nov. de 2022
Locked: Rena Berman el 5 de Jun. de 2024
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 comentarios
Rik
Rik el 24 de En. de 2023
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 el 5 de Jun. de 2024

(Answers Dev) Restored edit

Respuesta aceptada

Matt J
Matt J el 30 de Nov. de 2022
Yes interp1 to sample the curves at corresponding points. Then you can subtract them freely.
  1 comentario
Matt J
Matt J el 30 de Nov. de 2022
Editada: Matt J el 30 de Nov. de 2022
That shouldn't matter. You can interpolate at the same set of query points Xq,
result = interp1(X1,Y1,xq) - interp1(X2,Y2,xq)

Más respuestas (0)

This question is locked.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by