[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Different precision inside matrix
From: |
Mike Miller |
Subject: |
Re: Different precision inside matrix |
Date: |
Mon, 4 Nov 2013 20:16:09 -0500 |
On Sat, Oct 26, 2013 at 22:17:13 -0700, eduardo93df wrote:
> Is it possible to define a specific precision for each element of a matrix?
For each column of your matrix, perhaps something like this?
octave:1> A = ...
octave:2> printf (" %d %.2f %.9f\n", A');
1 4590.66 0.005493000
2 4983.89 0.039383758
Notice the transpose of the matrix because the printf family of
functions operate along the columns of the argument first.
If you want to specify exactly each element of the matrix
individually, just use a printf function with 6 format conversions.
--
mike
- Re: Different precision inside matrix,
Mike Miller <=