필터 지우기
필터 지우기

File access from s-function

조회 수: 1 (최근 30일)
Søren Vejlgaard Vedstesen
Søren Vejlgaard Vedstesen 2022년 3월 22일
댓글: Søren Vejlgaard Vedstesen 2023년 10월 6일
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
Søren Vejlgaard Vedstesen 2023년 10월 6일
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