johnyf / fig2u3d

Export MATLAB figure as U3D file or directly to 3D interactive PDF
http://www.mathworks.com/matlabcentral/fileexchange/37640-export-figure-to-3d-interactive-pdf
BSD 2-Clause "Simplified" License
62 stars 24 forks source link

rm is not recognized as a system command #1

Open CsatiZoltan opened 9 years ago

CsatiZoltan commented 9 years ago

I have tried your great program on two computers, each running 64bit Windows 7 with MATLAB R2011a. On one of them everything works well, while on the second one, the rm system command is not recognised when used in rm_idtf located in fig2u3d.m. I searched the net and it turned out, that the Windows equivalent of rm is del. So I made that change and after that everything works. Why is it that rm works on one computer, and does not on the other one running the same OS and MATLAB?

johnyf commented 9 years ago

Thanks, rm is a *nix command. One windows machine may have Cygwin or MinGW installed, which make rm available. A which rm or analogous should locate rm.

This suggests replacing rm with a MATLAB-specific command for deleting files, so that fig2u3d remain system-independent as much as possible.