Calculation of distance automatically at height h and from point O for different curve
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Jenny Lee
am 11 Dez. 2021
Bearbeitet: John Kelly
am 29 Dez. 2021
Hi all,
I hope you are doing well in this pandemic. I am new at Matlab, and i would like to solve one problem, which i am thinks very difficult to solve with the Matlab. I have one formula which calculates the curve at different K value. I need to evaluate the value of X1 , X2, X3 , X4, , X5, and X6 at height "H" from point "O" automatically for further condition. How can i caculate automatically by algorithm and use those different X1 , X2, X3 , X4, , X5 and X6 value in further algorithm. (For explnation, You can see it in the picture and you willl understand it much better)
My mind is stopped working for this, so any ray of light from you guys will be highly appreciable.
Thanks a ton
Jenny Lee
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 12 Dez. 2021
Isn't it just
% Find the index where the curve, for some particular k value, first drops below -0.05.
index = find(kCurve < -0.05, 1, 'first');
% Use that index to get the x value where the curve first drops below -0.05.
xN = x(index);
16 Kommentare
Image Analyst
am 17 Dez. 2021
I think it's within your abilities, nonetheless I'm working on it now.
Image Analyst
am 17 Dez. 2021
Bearbeitet: John Kelly
am 29 Dez. 2021
OK, I think I've got it, though I've spent way more time for you than I usually spend for people, but you're just so nice. 🙂
[image snipped] at request of Mathworks.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!