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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!