Undefined variable in functions
Following is the file simplefitnes.m
function y = simple_fitnes(x)
y = p * (x(1)^2 - x(2)) ^2 + (1 - x(1))^2;
end
Th...
7 years 前 | 1 个回答 | 0
1
个回答
提问
Not enough input arguments
Please refer to the following link http://in.mathworks.com/help/gads/examples/coding-and-minimizing-a-fitness-function-using-the...
Substituting variable into equation
I am attaching a snippet of the program which I am doing.
yt = ilaplace(y_syms)
syms t
yred = ilaplace(r)
syms t ...
7 years 前 | 1 个回答 | 0
1
个回答
提问
Solving non linear equation for a constant
I have got(after writing some code) 1) y = A1/2 - (A1*exp(-(2*t)/3))/2 and yred = exp(-2*t)/2 - exp(-t) + 1/2. I need to equat...
7 years 前 | 1 个回答 | 0
1
个回答
提问
Find steady state value of a function
By writing some program code I got an output y = exp(-2*t)/2 - exp(-t) + 1/2. I want to separate out 1/2 from it. What command s...