Import data from bpmn file into one string/char value Matlab

조회 수: 2 (최근 30일)
Lucas S
Lucas S 2021년 1월 22일
댓글: Lucas S 2021년 1월 25일
Hello,
I have a consistent bpmn file (similar to xml file) and i would like to read it with matlab and store the all file data in one string or char attribute. I have tried with
textread(file, format)
but the best i can have is a 2358796x1 char and then assemble each line to recreate the file but it's a very long process.
Is there another function to do this ?
Thanks for helping.
  댓글 수: 2
Mathieu NOE
Mathieu NOE 2021년 1월 22일
hello
have you tried with readlines ?
Lucas S
Lucas S 2021년 1월 25일
Well i think i have a too old matlab version, this function is undefined for me.

댓글을 달려면 로그인하십시오.

채택된 답변

Stephen23
Stephen23 2021년 1월 25일
The simple solution:
str = fileread(...);
  댓글 수: 1
Lucas S
Lucas S 2021년 1월 25일
Well indeed it works, i was sure i have tested this solution before.
Thank you !

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Structured Data and XML Documents에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by