Quick Question - Clean up code
Ältere Kommentare anzeigen
Hi - thanks for your time.
I have the following code:
PO = 0.15;
syms s
Dratio = solve ('0.15=exp(-(pi*s)/(sqrt(1-(s^2))))','s')
However, I'd like the '0.15' in the Dratio equation to be PO but when I do this - matlab returns the value as a long ugly expression of logs instead of 0.51.
Also when the code is used as it currently is (with 0.15 instead of PO) matlab returns a negative answer and a positive one. Is there a way to ignore the negative answer?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Assumptions finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!