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!