This is how our input and output will look in the MATLAB command window:Īs we can see in the output, the command syms A has created a symbolic variable ‘A’ & assigned it to a variable with the same name (A).
The command syms A will create a symbolic variable ‘A’ & will automatically assign it to a MATLAB variable with the same name. Please keep in mind that we are using the ‘syms’ function here to create the variable dynamically. In the first example, we will use syms function to create a variable. Let us now understand the code to use syms in MATLAB. Each array will have the size n1- X -…- X -nM & will contain automatically generated symbolic variables. variableN is used to create symbolic arrays variable1 …. ‘syms’ function will clear all the assumptions from variables.
Syms f(variable1, variable2, …., variableN) Hadoop, Data Science, Statistics & others Syntax of Matlab Syms