i'm trying modify matlab code else has written (i don't know matlab, python , fortran) , getting confused why of changes made aren't doing supposed do. has running unix commands matlab.
example run command :
and writes 'org_struc.command......" variable (which short string) ascii file called debugfile expected. however, following:code:[nothing,tline] = unix(['echo ' org_struc.commandexecutable{pop_struc.population(ind_no).step} ' >> debugfile']);
this submits job supercomputer , returns string variable tline, correctly printed matlab when type disp(tline) , of type char shown disp(class(tline)). but, when try echo variable out separate file did in first section of code, thiscode:[nothing, tline] = unix(['qsub ' org_struc.commandexecutable{pop_struc.population(ind_no).step} ]); disp(tline); disp(class(tline));
absolutely nothing printed. how can be? missing subtle? in advance help!code:[nothing,rline] = unix(['echo ' tline ' >> debugfile']);
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Basic MATLAB question
Ubuntu
Comments
Post a Comment