Ask about matlab code line by line
Afficher commentaires plus anciens
I want to know the meaning of the MATLAB code line by line
command_output_1 =ssh2_simple_command(hostname,username,password,'grep
-h "mat water" ./RBWR_TB2_2019/RBWR_TB2_2019');
this line mean login to server and find the line with "mat water" and give that line equal to command_output_1, Am I right?
for m = 1:length(command_output_1)
Y1(m,1) = textscan(command_output_1{m},'%s');
end
1)This line is for m = 1 to the line of command_output_1
then read the what?
o = 75; %location where coolant density is located in input file
for n = 1:34
Y2(n,1) = str2num(Y1{o, 1}{3,1});
o = o+1;
end
2)This loop str2num is to change str to number, but I don't understand after str2num what is it do?
serpent_command = sprintf('cd RBWR_TB2_2019;printf "%s" "#PBS -l
nodes=n001:ppn=8+n002:ppn=8+n003:ppn=8+n004:ppn=8" "#PBS -V" %s
"/opt/serpent/serpent2/sss2 -omp 32 RBWR_TB2_2019 > screen_output" >
RBWR_TB2_2019.qsub;qsub RBWR_TB2_2019.qsub','%s\n','"cd
$PBS_O_WORKDIR"');
serpent_command = strrep(serpent_command,'"','''');
3) What are these line do? Is it run serpent ?
P.S. I have more code to read,if someone want to give me a contact maybe an email or line it's wil be very grateful.
Réponse acceptée
Plus de réponses (1)
parveen bano
le 6 Jan 2021
0 votes
'fitnet' requires deep learning toolbox
2 commentaires
parveen bano
le 6 Jan 2021
how can i remove this warning
Steven Lord
le 6 Jan 2021
Since this does not appear at all related to the original question, please post it as a separate question.
Catégories
En savoir plus sur Performance and Memory dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!