MATLAB Answers

Matlab can not run add layout lines in powerpoint and gives strange error

9 views (last 30 days)
farzad on 17 May 2020
Commented: Walter Roberson on 18 May 2020
Hi All
just after some successfull runnings of my code, and simply adding more functions, now I am getting a new strange error :
Error using mlreportgen.ppt.Presentation/add
Cannot open file. createInputStream failed


Show 1 older comment
farzad on 17 May 2020
no, but you helped me look at the right direction Walter. I had left matlab base on some other folder, and the app uigetdir() was not able to change also the base current folder and the next operations were being done wrongly. I think when app designer lines go beyound a few thousand lines, some problems happen.
farzad on 18 May 2020
I mean, I do
mainfold= pwd
but if Matlab base is on another foder, mainfold get that one and not mydir. so, I should first change the matlab base folder
Walter Roberson
Walter Roberson on 18 May 2020
uigetdir() does not change current directories: it only gets a directory name from the user. You would then use it to construct file names or folder names, especially using fullfile()

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by