how to get divition from two files in for loop

1 次查看(过去 30 天)
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);

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by