- #1
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..
yeongchuan88 said:What is the difference between
function f = initialize_variables(N,problem)
and
function [f] = initialize_variables(N,problem)
Thank you !
Matlab coding is a programming language commonly used in scientific and engineering applications. It is designed for numerical computing and data analysis.
Initializing variables in pop and pro means setting initial values for variables in a program's population and production stages. This helps ensure that the program runs smoothly and produces accurate results.
To initialize variables in pop and pro in Matlab, you can use the "pop" and "pro" commands followed by the variable name and its initial value. For example, "pop x = 5" will initialize the variable "x" with a value of 5 in the population stage.
Initializing variables in pop and pro is important because it helps prevent errors and ensures that the program runs efficiently. It also allows for better control and manipulation of data in the program.
Yes, you can change the initial values of variables in pop and pro after they have been initialized. You can use the same commands used for initialization, but with new values. However, it is important to note that changing initial values may affect the results of the program.