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: Marco Atzeri
Subject: Re: I have yet to successfully execute an Octave script
Date: Sun, 16 Jul 2017 10:23:14 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 16/07/2017 10:04, Daniel Collins 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);



Thanks for any advice that may be offered.

-Daniel J. Collins


the code works for me. So how are you trying to run the script and what are the error messages ?

Marco



reply via email to

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