I have written a function as written below. function [avgfit,pipop,bestfit]= gafitness(psz,n,pop)
But when i called this function in another script m-file , with the following line [avgfit,pipop,bestfit]= gafitness(psz,n,pop); it is returning only the fist output variable(avgfit).other output variables (pipop,besrfit) are shown as undefined.
I want to know how to modify the function call to return multiple output variables.
댓글 수: 3
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/428285-how-to-return-multiple-variables-in-a-function-call-in-matlab-r-2015b#comment_633499
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/428285-how-to-return-multiple-variables-in-a-function-call-in-matlab-r-2015b#comment_633499
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/428285-how-to-return-multiple-variables-in-a-function-call-in-matlab-r-2015b#comment_633509
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/428285-how-to-return-multiple-variables-in-a-function-call-in-matlab-r-2015b#comment_633509
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/428285-how-to-return-multiple-variables-in-a-function-call-in-matlab-r-2015b#comment_633573
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/428285-how-to-return-multiple-variables-in-a-function-call-in-matlab-r-2015b#comment_633573
댓글을 달려면 로그인하십시오.