what is the correct way to write this expression in matlab?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
f=sqrt((1/(L*C)-(R.^2)/((4*C).^2))); correct way to write the expression in matlab?
1 Kommentar
Dyuman Joshi
am 24 Jan. 2023
We don't know, because we don't know the reference for the expression.
Please give more information or provide reference formula.
Antworten (2)
Star Strider
am 24 Jan. 2023
If ‘R’, ‘L’, and ‘C’ are all arrays of the same size, use element-wise operations in every multiplication, division, and exponentiation operation —
f = sqrt((1./(L.*C)-(R.^2)./((4*C).^2)));
.
2 Kommentare
Star Strider
am 25 Jan. 2023
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.
Jiri Hajek
am 24 Jan. 2023
Verschoben: Image Analyst
am 24 Jan. 2023
We can only see, if the expression is written corretly to allow evaluation by MATLAB:
L=1;
C=2;
R=3;
f=sqrt((1/(L*C)-(R.^2)/((4*C).^2)))
0 Kommentare
Siehe auch
Kategorien
Mehr zu Matrices and Arrays 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!