First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

Writing in first line of a txt file with MATALB

asked Aug 13 '17

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  /

1 answer

Sort by » oldest newest most voted
0

answered Aug 14 '17

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

link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Aug 13 '17

Seen: 1,134 times

Last updated: Aug 14 '17