Making a 3 Variable Function Into a 1 Variable Function
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello,
I have created the following simple function of the variable x,a, and b
f = 2*x - a - b.
What I want to do is set a and b equal to some constant values, for example a = b = 1. Now that I have set a and b equal to constants, my question is, how do I make this into a new function with just the variable x? For a = b = 1 , the new function should be 2*x - 2 . I want to do this so that I can use fzero to solve this new function numerically for x. Any help would be much appreciated.
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!