help-octave
[Top][All Lists]
Advanced

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

RE: HEPL FOR A FUNCTION


From: CARMEN SANCHEZ
Subject: RE: HEPL FOR A FUNCTION
Date: Thu, 19 Apr 2012 13:07:58 +0200

Hi Doug:
 
Sorry, but I cannot understand to you.
 
I have this:
 
clear all;
A=[-0,195966, -0,397014, -0,538551, -0,954502;                            
-0,021981,      0,387760,   -0,593141,   -0,240908;
-0,195130,      0,013832,   -0,686614,   -0,901565;
0,134872,      0,711619,   -0,339303,      0,440442];
b=[-0,0129656;                                                                                    

0,6601410;
0,0694383;
0,3373380];
B  =  [A,  b];                                                                                          

rank (A)                                                                                                 
rank (b)
rank (B)
[R,  K]  =   rref (B)                                                                                 

I have calculate the matrix and now I want to calculate the same but now I just want both matrix with 2 decimals like this:
 
clear all;
A=[-0,19, -0,39, -0,53, -0,95; ......

 
b=[-0,012; ......                                                                         
 
How can I do it automatically?
 
thank you very much for your help.
 
Best regards,
 
Javier M. (from Spain)              

 

Date: Thu, 19 Apr 2012 06:58:35 -0400
Subject: Re: HEPL FOR A FUNCTION
From: address@hidden
To: address@hidden
CC: address@hidden



On Thu, Apr 19, 2012 at 6:37 AM, CARMEN SANCHEZ <address@hidden> wrote:
Good morning:
 
I am using octave to resolve a matrix problem.
 
I have this matrix:
 
A=[-0,195966, -0,397014, -0,538551, -0,954502;                             
-0,021981,      0,387760,   -0,593141,   -0,240908;
-0,195130,      0,013832,   -0,686614,   -0,901565;
0,134872,      0,711619,   -0,339303,      0,440442];

 
Is there any octave function to reduce decimals to just only 2 decimals without erase them manually?
 
Best regards,
 
Javier M.
 

_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave




try

reply via email to

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