MATLAB Expanding a number in matlab and getting rid of e+003 how ?

  • Thread starter Thread starter uaeXuae
  • Start date Start date
  • Tags Tags
    Expanding Matlab
AI Thread Summary
To display a number in MATLAB without scientific notation (e.g., 1.6050e+003) and instead show it as a whole number (e.g., 1605), the discussion focuses on using the `format` function. The user is seeking a solution to format the output of a calculated value from a function integration, which results in a fraction that is then converted to a double. The recommended approach is to use `format long` or `format bank` to control the display format of numbers in the MATLAB command window. Additionally, the user is encouraged to refer to MATLAB's documentation on formatting options for further guidance.
uaeXuae
Messages
54
Reaction score
0
[SOLVED] Expanding a number in MATLAB and getting rid of e+003 how ?

heres my code:

Sysms x
f=(my function)

Y=int(f,11,16) --> Results in a fraction answer

Double(y) --> To get rid of the fraction

The answer is 1.6050e+003

how do i let it show 1605 straight away ?
 
Physics news on Phys.org
Anyone please ? I have to submit this in 2 days please help...
 

Similar threads

Replies
1
Views
3K
Replies
5
Views
2K
Replies
2
Views
2K
Replies
1
Views
4K
Replies
5
Views
3K
Back
Top