Find ratio of data

조회 수: 3 (최근 30일)
Learning
Learning 2024년 9월 3일
답변: Walter Roberson 2024년 9월 3일
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?

답변 (1개)

Walter Roberson
Walter Roberson 2024년 9월 3일
Ratios = YourData(2:end,:) ./ YourData(1:end-1,:);

카테고리

Help CenterFile Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

태그

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by