How to write an optimization algorithm?? any type of optimization algorithm?? can anyone tell me with the help of a matlab program?
10 views (last 30 days)
%I have 2 variables. n=[7:.0001:9];
d = linspace(1, 100, length(n));
%i have to put them in these formulas
%to get the R=30. and show what variables of n and d gets R=30.
%This i have to do using optimization. Can any1 do it??
More Answers (2)
Erik S. on 18 Feb 2015
I started with a code to help you. But I don't know how you mean with n(3), If you want to find a single value for n, you cannot use it like a vector. Another question to you is when you write cos(45), is it in degrees? cos uses radians, you can use the function cosd(45) instead