how to get divition from two files in for loop
1 view (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!