I don't know if this is possible but i want to execute an external matlab script inside another one already compiled by using the deploytool.
I ask via uigetfile for an m-file and then i use the run function inside my script; i already checked that when running inside matlab the script runs properly.
[FN,PN]=uigetfile('*.m','Get material data in matlab format');
mmdata=fullfile(PN,FN);
run(mmdata);
When running the deployed programm i get the following error:
Error using ==> run at 65
D:\Mat_Data.m not found
MATLAB:run:FileNotFound
The file does exists.
Sorry if this has been already answered! I was unable to find the relevant posts on this board.