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

  • Context: MATLAB 
  • Thread starter Thread starter uaeXuae
  • Start date Start date
  • Tags Tags
    Expanding Matlab
Click For Summary
SUMMARY

The discussion focuses on formatting numerical output in MATLAB to eliminate scientific notation, specifically converting the result of a calculation into a standard decimal format. The user initially receives a result of 1.6050e+003 and seeks to display it as 1605. The solution involves using the MATLAB function 'format' to adjust the display settings. The relevant MATLAB command is 'format long' or 'format bank' to achieve the desired output.

PREREQUISITES
  • Basic understanding of MATLAB syntax and functions
  • Familiarity with numerical output formatting in MATLAB
  • Knowledge of MATLAB's data types, specifically handling fractions and doubles
  • Experience with MATLAB's symbolic computation capabilities
NEXT STEPS
  • Research MATLAB 'format' command options for output display
  • Learn about MATLAB's 'double' function and its applications
  • Explore MATLAB's symbolic toolbox for advanced calculations
  • Investigate best practices for presenting numerical results in MATLAB
USEFUL FOR

This discussion is beneficial for MATLAB users, particularly students and professionals in engineering or mathematics who need to present numerical results clearly without scientific notation.

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 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K