Float information (as in Python's sys module)
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Dimitrios Anagnostou
 el 10 de Oct. de 2022
  
    
    
    
    
    Respondida: Praveen Reddy
    
 el 16 de Feb. de 2023
            I know that there exists commands like eps, realmin, realmax etc. Is it possible to obtain complete float information as provided by Python's sys module (see below)? Thanks a lot.
> import sys
> sys.float_info
# output: sys.float_info(max=1.7976931348623157e+308, max_exp=1024, max_10_exp=308, min=2.2250738585072014e-308, min_exp=-1021, min_10_exp=-307, dig=15, mant_dig=53, epsilon=2.220446049250313e-16, radix=2, rounds=1)
0 comentarios
Respuesta aceptada
  Praveen Reddy
    
 el 16 de Feb. de 2023
        I Understand that you want to find the limits and entire information of a datatype with a single command, however it is not possible. But you can create  MATLAB function to return the structure with necessary fields. Also to know the information of a variable, you can use “whos” command.
Please refer to the MATLAB Documentation to know more:
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Call Python from MATLAB en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!