How to save the result simulated in command window into microsoft word or text document?

Hoping to export export the result in command window to the microsoft word or text files because copy and paste is time consuming for my case...Thank you

4 Comments

Please explain any details. What are "the results"?
the result are the calculated iterations and the values that is obtained from gauss seidel method
I do not know what "calculated iterations" are. Are you talking about strings, numerical arrays, 2D or 3D diagrams or animations?
just a simple display like below...
-------------------------------------------------
| Power System Analysis using Gauss-Seidel Method |
-------------------------------------------------
From To R X
ldata =
1.0000 2.0000 0.0200 0.0400
1.0000 3.0000 0.0100 0.0300
2.0000 3.0000 0.0125 0.0250
ydata =
1.0000 2.0000 10.0082 -20.0061i
1.0000 3.0000 9.9985 -29.9980i
2.0000 3.0000 15.9821 -31.9941i
| Bus Admittance Matrix |
Y =
20.0067 -50.0041i -10.0082 +20.0061i -9.9985 +29.9980i
-10.0082 +20.0061i 25.9902 -52.0002i -15.9821 +31.9941i
-9.9985 +29.9980i -15.9821 +31.9941i 25.9806 -61.9921i
| Displaying the iterations |
Iter v2 abs(dv2) v3 abs(dv3)
1 0.9746 - 0.0423i 0.0493 1.0400 - 0.0052i 0.0052
2 0.9711 - 0.0434i 0.0037 1.0400 - 0.0073i 0.0021
3 0.9707 - 0.0448i 0.0014 1.0400 - 0.0083i 0.0010
4 0.9707 - 0.0453i 0.0005 1.0400 - 0.0087i 0.0004
5 0.9706 - 0.0455i 0.0002 1.0400 - 0.0089i 0.0002
6 0.9706 - 0.0456i 0.0001 1.0400 - 0.0090i 0.0001
7 0.9706 - 0.0457i 0.0000 1.0400 - 0.0090i 0.0000
| Voltage of each bus |
v1=1.050+0.000*i pu
v2=0.971-0.046*i pu
v3=1.040-0.009*i pu
| Current of each branches |
I12=1.708-1.131*i pu
I21=-1.708+1.131*i pu
I13=0.371-0.211*i pu
I31=-0.371+0.211*i pu
I23=-2.282+1.633*i pu
I32=2.282-1.633*i pu
| Power flow between each buses |
s12=179.39 Mw+118.77*i MVar
s21=-170.99 Mw-101.98*i MVar
s13=38.91 Mw+22.17*i MVar
s31=-38.72 Mw-21.62*i MVar
s23=-228.93 Mw-148.05*i MVar
s32=238.76 Mw+167.74*i MVar
| Line losses between each buses |
sL12=8.40 Mw+16.78*i MVar
sL13=0.18 Mw+0.55*i MVar
sL23=9.84 Mw+19.69*i MVar
Elapsed time is 0.064606 seconds.

Sign in to comment.

Answers (2)

You likely need to use evalc() to capture the results before you can send them to Word.
You could also look at the Report Generator and "publishing" the MATLAB results.

Asked:

on 19 May 2012

Community Treasure Hunt

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

Start Hunting!