help-octave
[Top][All Lists]
Advanced

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

Different precision inside matrix


From: eduardo93df
Subject: Different precision inside matrix
Date: Sat, 26 Oct 2013 22:17:13 -0700 (PDT)

I'm creating an engineering program which calculates reaction forces and
deformations in trusses. The calculation method works basically with
matrices. The final result is also shown in matrices. My problem, though, is
that I want to display the elements of the results' matrix with different
precisions. It'd be something like: 


A = [ 1  4590.66  0.005493; 
        2  4983.89  0.0393837584];

I've tried to use the command "output_precision()", but it changes all the
elements' precision. The command "format free" doesn't work either, because
it displays the matrix like this:

A = [1  4590.6693848574 0.005493848748;
       2  4983.89948         3.9383758432e-002];

Is it possible to define a specific precision for each element of a matrix? 






--
View this message in context: 
http://octave.1599824.n4.nabble.com/Different-precision-inside-matrix-tp4658549.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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