

simulation problem
Hi Dears
I thank you, to solve the mistake of following scilab model.
When I run the model in scilab, facing the following error:
N_species=13;
N_species_14=N_species+1;
N_fleet=4;
p_best_n=[];
p_best_n=[];
q_best=p_best_n(1:N_fleet,:);
xx=zeros(4,1);
q_best=[q_best,xx];
q_n_vec=matrix(q_best',N_species_14*N_fleet,1)
!--error 60
Wrong size for argument: Incompatible dimensions.
I am looking forward for your kind response.
Best Regards
Abdul
Scilab


q_best = 0. 0. 0. 0. q_best contains only 4 elements. You are trying to resize it into (14*4,1) column vector. You need to have 56 elements in q_best for the matrix function to work.
17-03-17, 3:37 p.m. adiblhf
Login to add comment