Area total area Function
이전 댓글 표시
Hello guys, Matlab rookie here
How can I make a function with 2 variables that will give me total area.
I am aware, there is no need for this function when I can get my answer by using simply Totalweight=dot(Area,Lenght); , reason I want it to work as a function is I am writing a ga(genetic algorithm) function and this will be my Objective function.
this is what I got so far:
function Totalweight(Area,Lenght)
Lenght=[110 110 110 110 110 155 155 110 155 155]; Area=[110 110 110 110 110 155 155 110 155 155];
Totalweight=dot(Area,Lenght); end
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Pulse and Transition Metrics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!