yeongchuan88
- 4
- 0
chromosome = initialize_variables(pop,pro);
What is the meaning of this line ?
Thank you..
What is the meaning of this line ?
Thank you..
The discussion revolves around understanding the MATLAB code line "chromosome = initialize_variables(pop,pro)" and the differences in function definitions in MATLAB, particularly regarding output variable notation.
Participants generally agree that there is no functional difference between the two forms of the function definition when there is a single output variable. However, the discussion does not resolve the broader implications or contexts of these definitions.
The discussion does not address specific assumptions about the user-defined function or the context in which it is used, nor does it clarify the nature of the inputs pop and pro.
yeongchuan88 said:What is the difference between
function f = initialize_variables(N,problem)
and
function [f] = initialize_variables(N,problem)
Thank you !