How to replace equations in symbolic function

조회 수: 4 (최근 30일)
Anis Frej
Anis Frej 2020년 3월 27일
댓글: Anis Frej 2020년 3월 27일
Good Morning,
Please I have a function F = 3*a*b
Therefore how can i change (a*b) with a variable 'x' to obtain F = 3*x
Think you.

채택된 답변

Birdman
Birdman 2020년 3월 27일
By using subs function:
syms a b x
F=3*a*b;
Fnew=subs(F,{a,b},{x,1})
  댓글 수: 9
Birdman
Birdman 2020년 3월 27일
Is there any chance you can use a newer release of MATLAB?
Anis Frej
Anis Frej 2020년 3월 27일
i will install it
Think you

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Function Creation에 대해 자세히 알아보기

제품


릴리스

R2011a

Community Treasure Hunt

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

Start Hunting!

Translated by