Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How to use "fzero" command with a variable(s)?

1 vue (au cours des 30 derniers jours)
JK
JK le 6 Jan 2017
Clôturé : MATLAB Answer Bot le 20 Août 2021
format long;
lp_upper='besselj(1,x)/besselj(0,x)-besselk(1,sqrt(3.543149609311796^2-x^2))/besselk(0,sqrt(3.543149609311796^2-x^2))*sqrt(3.543149609311796^2-x^2)/x';
lpupperfrequency = fzero(lp_upper,2)
I am trying to figure out how to use a variable instead of a constant in the attached code above.
as an example, instead of using 3.543149609311796, I would like to use
lmn = 3.543149609311796;
format long;
lp_upper='besselj(1,x)/besselj(0,x)-besselk(1,sqrt(lmn^2-x^2))/besselk(0,sqrt(^2-x^2))*sqrt(lmn^2-x^2)/x';
lpupperfrequency = fzero(lp_upper,2)
when I tried that, it gives me an error.

Réponses (0)

Cette question est clôturée.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by