Ask Your Question
0

Writing in first line of a txt file with MATALB

asked 2017-08-13 00:07:58 -0500

Amir90 gravatar image

Hello, I want to write CLODBL model in the first line of .dyr file of PSSE software by MATLAB script, How can I do it? CLODBL model is as follows:

 3005 'CLODBL' * 20 40 0 5 10 2 0 0  /
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-08-14 11:35:34 -0500

oppossumX gravatar image

Is using matlab a requirement for this? That seems like a lot of overhead for writing to a text file.

I think you could just use fopen, fprintf, and fclose to open, write, and close the file respectively.

https://www.mathworks.com/help/matlab...tid=gnloc_drop

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2017-08-13 00:07:58 -0500

Seen: 1,132 times

Last updated: Aug 14 '17