help-octave
[Top][All Lists]
Advanced

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

Re: How to view the results "Columns 1 through 8:" Text


From: Kai Torben Ohlhus
Subject: Re: How to view the results "Columns 1 through 8:" Text
Date: Tue, 16 Jul 2013 11:20:18 +0200

On 16 July 2013 08:17, Tobal <address@hidden> wrote:
Hi, if i execute something command as for instance:

dg = diff(XR)./diff(XL)

Octave prints all this output:

dg =

 Columns 1 through 8:

   0.33959   0.35045   0.35442   0.35584   0.35635   0.35654   0.35660
0.35662

 Columns 9 through 13:

   0.35663   0.35664   0.35664   0.35664   0.35664


Is there anyway to change this one by that output?

dg =
   0.33959   0.35045   0.35442   0.35584   0.35635   0.35654   0.35660
0.35662
   0.35663   0.35664   0.35664   0.35664   0.35664

And can i configure this output option by default in Octave? I prefer this
output.

Thanks



--
View this message in context: http://octave.1599824.n4.nabble.com/How-to-view-the-results-Columns-1-through-8-Text-tp4655684.html
Sent from the Octave - General mailing list archive at Nabble.com.
_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave

Hi Tobal,

I suggest you two simple tricks:

1. If you want to output a simple row vector, just transpose the output. (Might be sufficient for ~20 elements)
2. Use the printf() function. https://www.gnu.org/software/octave/doc/interpreter/C_002dStyle-I_002fO-Functions.html#C_002dStyle-I_002fO-Functions


dg = [0.33959 0.35045 0.35442 0.35584 0.35635 0.35654 0.35660 0.35662 0.35663 0.35664 0.35664 0.35664 0.35664];

% 1.
dg'

% 2.
printf("%f ", dg)

Best,
Kai

reply via email to

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