creating a Function for an optimizing algorthim
Ältere Kommentare anzeigen
Hello,
Is this function correct?...i.e when it is called will it employ the given values of a,b,c in the stated expression
function y=Roughness(a,b,c)
y=2.29587 - 0.016361 * a + 5.94470 * b - 1.75990 * c -0.034286 * a * b + (4.76190*10.^-004)*a*c +1.66667*b*c + (5.75411*10.^-005)*a.^2 - 1.61095*b^2 + 2.80631*c^2;
for a = '[56; 80; 115; 115; 174; 115; 80; 115; 80; 150; 150; 80; 115; 115; 115; 115; 115; 150; 115; 150]'; end for b = '[0.16; 0.08; 0.03; 0.16; 0.16; 0.16; 0.23; 0.16; 0.23; 0.23; 0.23; 0.08; 0.16; 0.16; 0.28; 0.16; 0.16; 0.08; 0.16; 0.08]'; end for c = '[0.60; 0.90; 0.60; 0.60; 0.60; 1.10; 0.30; 0.10; 0.90; 0.30; 0.90; 0.30; 0.60; 0.60; 0.60; 0.60; 0.60; 0.90; 0.60; 0.30]'; end end
Antworten (0)
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!