how to get divition from two files in for loop

1 visualización (últimos 30 días)
yunwei hu
yunwei hu el 19 de Feb. de 2020
Hi all,
i want to get division between two matrics. For divisor i get it from different files, and the dividend is the different colums in one matrix.
In the end i hope to import the results in 7 columns in one matrix.
the sizes of two matrics are consistent.
However, now the results are overwritten and do not seem correct.
Can someone point out the mistakes in the codes?
Thanks in advance!
len=1:7;
for k=1:length(len)
lengthpersegment=load(['finallength' num2str(t) '.mat']);
finalintensity=zeros();
for tt=2:8 %tt=2:length(fluorescence_sum) for all data available
load('fluorescence_sum.mat');
intensitypersegment=rmmissing(fluorescenceMatrix(:,tt));
end
intensityperlength = (intensitypersegment(tt))./lengthpersegment.finallength(k);
S((k),:)= intensityperlength;
finalintensity=nonzeros(S);

Respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by