Find ratio of data

2 visualizaciones (últimos 30 días)
Learning
Learning el 3 de Sept. de 2024
Respondida: Walter Roberson el 3 de Sept. de 2024
Hi, assume I have 10 data/sample spectra. Each spectrum is in a row and the variables are in columns. I want to divide spectrum 2 by 1, spectrum 3 by 2, 4 by 3 etc. basically each spectrum to be divided by the spectrum that was collected before it. Any code to do this at one go?

Respuestas (1)

Walter Roberson
Walter Roberson el 3 de Sept. de 2024
Ratios = YourData(2:end,:) ./ YourData(1:end-1,:);

Categorías

Más información sobre Fourier Analysis and Filtering en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by