help-octave
[Top][All Lists]
Advanced

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

Problem with Matlab script


From: Riedel Thomas
Subject: Problem with Matlab script
Date: Tue, 22 Mar 2016 20:19:23 +0100

Hi guys,

i have a problem with a matlab script i like to run in Octave.
The commands below do not result in an output of a text file (Results_formulas.txt). I suspect that the matlab syntax for "fprintf" does not work here, but i cannot figure out the error.
Many thanks for your help,

Thomas!


output_file = ['Results_formulas.txt'];
data = [a;b;c;d;e;f;g;h;i;j;k;l;m;o;p;q;r;s;t;u];
fid = fopen(output_file,'wt');
fprintf(fid,'%4.5f %4.6f %2.0f %2.0f %2.0f %2.0f %2.0f %1.0f %8.0f %5.0f %3.0f %4.2f %1.5f %2.0f %2.0f %7.0f %1.0f %1.0f %1.0f %1.0f\n', data);




reply via email to

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