필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

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

조회 수: 1 (최근 30일)
JK
JK 2017년 1월 6일
마감: MATLAB Answer Bot 2021년 8월 20일
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.

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by