Question : matlab symbolic variables
Answered by : huldar
% Creating symbolic variables with 2 different methods:
% 1:
syms x
% 2:
y = sym('y')
Source : https://www.mathworks.com/help/symbolic/create-symbolic-numbers-variables-and-expressions.html | Last Update : Mon, 13 Sep 21
Question : matlab get symbolic variable from function
Answered by : huldar
symvar(s)
symvar(s,n)
symvar(s) returns a vector of all symbolic variables in s. The variables are
in alphabetical order with uppercase letters preceding lowercase letters.
symvar(s,n) chooses the n symbolic variables in s that are alphabetically
closest to x and returns them in alphabetical order. If s is a symbolic
function, symvar(s,n) returns the input arguments of s before other variables
in s.
Source : https://www.mathworks.com/help/symbolic/symvar.html | Last Update : Fri, 15 Oct 21