SIMULINK model error with 'to file'
5 次查看(过去 30 天)
显示 更早的评论
A simulink model i created worked fine on my university system and laptop. I then added a few 'to file' blocks (to save on ram during long simulations)to the working model and now this new model runs only on my uni pc.....i get an error when i trying running it on my laptop.....it reads as follows;
block error..source;to file.....Error encountered in block 'tuesday4_2/To File1' model error..source;unknown.....Error opening or closing file 'data.mat'
any idea whats happening and how can i rectify it....thanx.
0 个评论
回答(2 个)
TAB
2012-9-3
Seems that you don't have write access to the directory in which mat-files are being written. Open the Matlab as admin try again.
Azzi Abdelmalek
2012-9-3
I suggest to change the directory where you are saving your file, if it's in C: do it in D:
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Environment Customization 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!