Function of a variable
이전 댓글 표시
The sc value in the equation B should be function of x
sc(x) that depends on range x= 0:0.01:10

댓글 수: 3
Garmit Pant
2022년 6월 28일
Can you please elaborate as to what exactly is the problem that you are facing?
Anfal AlShehhi
2022년 6월 28일
Alan Stevens
2022년 6월 28일
Then define
sc = @(x) ... % whatever the definition is.
But since you have set the values of x previously you could just set
sc = ... % directly in terms of x
답변 (1개)
Alan Stevens
2022년 6월 28일
편집: Alan Stevens
2022년 6월 28일
0 개 추천
- You need to define sc before using it in B.
- In B you have ...1000/dref*dref.... This just means the dref va;lues cancel each other out. Did you mean ...1000/(dref*dref)...?
PS Upload the actual code, niot an image. Use the > symbol above.
댓글 수: 3
Anfal AlShehhi
2022년 6월 28일
Anfal AlShehhi
2022년 6월 28일
편집: Anfal AlShehhi
2022년 6월 28일
Alan Stevens
2022년 6월 28일
You need to define sc.
If you don't know what sc is, how is Matlab to know?
카테고리
도움말 센터 및 File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!