I want to run the following command line
'C:\Program Files\CloudCompare>CloudCompare -o C:\CloudComparetest\test.bin -SS SPATIAL 0.1'
It works well ( see image) when I follow this way:
window-->cmd and type it directly there.
But I need to run this command inside matlab job. Online search gives me this pattern to run simple commands:
It works:
command = 'C:\Program Files\CloudCompare\CloudCompare.exe';
[status,cmdout] = system(command)
status=0;
But trying this gives me errors: (I know it is not standard dos command...may be any other solution.
% command = 'C:\Program Files\CloudCompare>CloudCompare -o C:\CloudComparetest\test.bin -SS SPATIAL 0.1';
% status = dos(command)
status=1;
I also tried
% command = 'C:\Program Files\CloudCompare\CloudCompare -o C:\CloudComparetest\test.bin -SS SPATIAL 0.1';
% status = dos(command)
status=1;
Error: while running cloud.bat
Either the command is not correct or can not be found.
dos('"C:\MyPHDCODE\COLOR_SCANS\cloud.bat"')
C:\MyPHDCODE\Chapter5\COLORIMAGES>C:\Program Files\CloudCompare\CloudCompare -o C:\CloudComparetest\test.bin -SS SPATIAL 0.1 pause
Der Befehl "C:\Program" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
ans =
1

