Skip to main content

Thread: Basic MATLAB question


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 :
code:
[nothing,tline] = unix(['echo ' org_struc.commandexecutable{pop_struc.population(ind_no).step} ' >> debugfile']);
and writes 'org_struc.command......" variable (which short string) ascii file called debugfile expected. however, following:

code:
[nothing, tline] = unix(['qsub ' org_struc.commandexecutable{pop_struc.population(ind_no).step} ]);  disp(tline);  disp(class(tline));
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, this

code:
[nothing,rline] = unix(['echo ' tline ' >> debugfile']);
absolutely nothing printed. how can be? missing subtle? in advance help!



Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Basic MATLAB question


Ubuntu

Comments