Running all Nastran input .bdf files contained in a folder using Matlab
Hello everyone,
I am trying to run a number of nastran input.bdf files contained in a folder using "system "command in matlab
System command works well when i secify onle one file named"1.bdf" like:
system(‘D:MSC.SoftwareMSC_Nastran20180binnastranw.exe 1.bdf’)
But,I have three bdf files in folder, I am trying to run using for loop
I have tried:
……………………………………………………………………….
files = dir(‘*.bdf’);
for i = 1 : length(files)
filename = files(K).name;
system(‘D:MSC.SoftwareMSC_Nastran20180binnastranw.exe filename’)
end
……………………………………………………………………………
But it does not start nastran ,rather gives output such as
ans=0
ans=0
ans=0Hello everyone,
I am trying to run a number of nastran input.bdf files contained in a folder using "system "command in matlab
System command works well when i secify onle one file named"1.bdf" like:
system(‘D:MSC.SoftwareMSC_Nastran20180binnastranw.exe 1.bdf’)
But,I have three bdf files in folder, I am trying to run using for loop
I have tried:
……………………………………………………………………….
files = dir(‘*.bdf’);
for i = 1 : length(files)
filename = files(K).name;
system(‘D:MSC.SoftwareMSC_Nastran20180binnastranw.exe filename’)
end
……………………………………………………………………………
But it does not start nastran ,rather gives output such as
ans=0
ans=0
ans=0 Hello everyone,
I am trying to run a number of nastran input.bdf files contained in a folder using "system "command in matlab
System command works well when i secify onle one file named"1.bdf" like:
system(‘D:MSC.SoftwareMSC_Nastran20180binnastranw.exe 1.bdf’)
But,I have three bdf files in folder, I am trying to run using for loop
I have tried:
……………………………………………………………………….
files = dir(‘*.bdf’);
for i = 1 : length(files)
filename = files(K).name;
system(‘D:MSC.SoftwareMSC_Nastran20180binnastranw.exe filename’)
end
……………………………………………………………………………
But it does not start nastran ,rather gives output such as
ans=0
ans=0
ans=0 running nastran job in matlab MATLAB Answers — New Questions