Need help to find min(abs(dL==0)) for every column individually
Show older comments
Hi i have two matrix and they are gradually
L1 =11953x1 double
L2 = 11953x201 double
then i have substracted from L2 to L1 columnwise
dL =L2(:,1:201)- L1;
i have to find the indices of min(abs(dL==0)) for every column and find the value of that indices [minimum absolute values which are near to zero] .and have to put them in a matrix of
X_f = 1x 201
{ i am a beginner , any help will be highly appriciateable}
2 Comments
Amit Bhowmick
on 3 Jul 2021
dL =L2- L1;
[dL_min,X_f]=min(abs(dL),[],1)
md mayeen uddin
on 3 Jul 2021
Accepted Answer
More Answers (1)
Amit Bhowmick
on 3 Jul 2021
Check it out
dL =L2- L1;
[dL_min,X_f]=min(abs(dL),[],1)
Categories
Find more on Linear Algebra 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!