help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I have yet to successfully execute an Octave script


From: Dmitri A. Sergatskov
Subject: Re: I have yet to successfully execute an Octave script
Date: Sun, 16 Jul 2017 20:56:19 -0500



On Sun, Jul 16, 2017 at 3:04 AM, Daniel Collins <address@hidden> wrote:

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);


​Technically, you may want to either fclose(fid) or fflash(fid)
to make  sure the data are written to the file.​


 

 

Thanks for any advice that may be offered.

-Daniel J. Collins

571-406-9708

 



​Dmitri.
​--




reply via email to

[Prev in Thread] Current Thread [Next in Thread]