|
From: | Dmitri A. Sergatskov |
Subject: | Re: I have yet to successfully execute an Octave script |
Date: | Sun, 16 Jul 2017 20:56:19 -0500 |
Folks,
I am a new user using Octave 4.2.0 in Windows 7. I have yet to successfully execute even 1 script. What is wrong with the following code?
filename = "first1.txt";
fid = fopen(filename, "w");
m = [1 2 3;4 5 6;7 8 9];
v = [1;2;3];
x = m*v;
fprintf(fid,'x = %.1f\n%.1f\n%.1f\n',x);
[Prev in Thread] | Current Thread | [Next in Thread] |