File access from s-function

1 次查看(过去 30 天)
Is it possible use file functions from a s-function on a windows PC?
I would like to store and read array information on the PC harddive.
I have attempted to use standard fopen function inside the .cpp file but the matlab enviroment crashes.

回答(1 个)

Piyush Patil
Piyush Patil 2023-10-5
Hello,
As per my understanding, you want to perform file operations like reading a file from S-Function.
To read data from a text file, you can write your own S-Function.
Please check the following MATLAB Answer which answers the similar question:
I hope this resolves the issue you are facing.
  1 个评论
Søren Vejlgaard Vedstesen
I would like to use the fopen function directly from a S-function.
Matlab crashes when I try this from a S-function.
How do I do this without matlab crashing?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 String Parsing 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by