MATLAB Answers

Subs Command & Conversion into Matlab Function (multivariable)

3 views (last 30 days)
Alex Santizo
Alex Santizo on 7 Feb 2020
Answered: Jyothis Gireesh on 10 Feb 2020
syms t g f
subs (f,t,4/3)
%Also need to solve by conversion into a matlab function

  1 Comment

Walter Roberson
Walter Roberson on 7 Feb 2020
You need to pass a value to sin instead of multiply sin itself by something
For example.

Sign in to comment.

Answers (1)

Jyothis Gireesh
Jyothis Gireesh on 10 Feb 2020
Here are a few pointers which may be able to help you:
  • As explained by Mr. Walter Roberson above, you need to pass an input argument to the “sin()” function. Or else it will be flagged as an error at run-time.
  • I am assuming here that you want to convert the symbolic expression in “f” to a MATLAB function. You may use the “matlabFunction()”to achieve this result.
Please refer to the following documentation link on “matlabFunction()” for any clarifications
Hope this helps!!


Sign in to comment.