Use results in the definition of my functions
조회 수: 1(최근 30일)
I would like to use my X(i)s to define my function p, but it says that they are undefined variables or functions. How can I do?
A=[46/15, 5/2, 2/3; 5/2, 8/3, 1; 2/3, 1, 2];
B=[2*exp(1); 2*exp(1); 2*exp(1)-2];
Star Strider 2021년 10월 17일
Try this instead —
Here, ‘X’ are the parameters and ‘x’ is the variable. Also, naming the variable inside the function to be the same as the function name confuses MATLAB (and everyone who reads the code).
Beyond that, what the problem and the desired result may be are both not possible to determine, and the parameters ‘X’ are nowhere either defined or calculated, so I’ll stop here.