Hi Christian,
Try this:
title(sprintf('Surface Ions per nm^2: %0.2f x 10^%i', 10^mod(log10(surfaceIons),1),floor(log10(surfaceIons)))) Answer from Mike on mathworks.com
MathWorks
mathworks.com › matlabcentral › answers › 1721585-how-to-write-10-6-in-xlabel
How to write 10^(-6) in xlabel? - MATLAB Answers - MATLAB Central
May 17, 2022 - I need to write a line in the xlabel. In that line, avlue has to be shown as 4x10^(-5). I am using the below command: ... char(10),'B-H curve for f= ',num2str(f),'Hz with $\frac{dB}{dH}$ =',num2str(dBdH),' and the flux density point on anhysteretic B-H curve B1=',num2str(B1),' T',... char(10),'at corresponding field strength H1=',num2str(H1),' A/m with c=',num2str(c),', $\alpha$=',num2str(alpha_peak),'$\10^-6$','k=',num2str(k)],'Interpreter', 'latex')
Stack Overflow
stackoverflow.com › questions › 29712609 › how-can-i-write-a-number-values-in-powers-of-10
matlab - How can i write a number values in powers of 10? - Stack Overflow
4.40710646596169e+018 16.9749211806197e+186 142.220634811050e+078 508.723835280617e+204 1.15401317731033e-177 129.994388899690e+168 14.3008811642810e+153 1.25899227268954e+165 24.1450064703939e+150 627.108997290435e+144 2.03728822649372e+177 339.903986115177e-066 150.360900017430e+183 5.39003779219462e+135 183.893417489826e+198 648.544709490386e+045 19.7574461055182e+198 3.91455750674308e+102 6.41548629454028e-114 70.4943280639616e+096 19.7574461055182e+198 3.11450571506133e-009 249.857950606210e+093 4.64921904682151e+180 750.343029004712e+147 · I want these results to be in a format of power of 10, so that I can easily do arithmetic operations for my next function.
Videos
12:20
MATLAB For Beginners Exponents and Scientific Notation - YouTube
11:49
Matlab Online Tutorial - 12 - Adjusting the Display Precision for ...
17:54
What is an Exponent & Powers of 10? - [5] - YouTube
01:46
how to take power of a number in matlab | raised to the power ...
MathWorks
mathworks.com › matlabcentral › answers › 512494-format-number-exponential-notation
Format Number (exponential notation) - MATLAB Answers - MATLAB Central
March 23, 2020 - You will not be able to do this directly. sprintf and related do not offer any control over where the decimal is put. You can use log10 to probe the power of 10 for the value, such as -5.
YouTube
youtube.com › watch
Matlab Online Tutorial - 06 - Exponents and Scientific Notation - YouTube
Get more lessons like this at http://www.MathTutorDVD.comIn this lesson, you will learn how to perform calculations in matlab that involve scientific notatio...
Published March 23, 2018
MathWorks
mathworks.com › matlabcentral › answers › 1776980-how-to-write-numbers-with-10-format-in-matlab
how to write numbers with 10^ format in matlab? - MATLAB Answers - MATLAB Central
August 10, 2022 - how to write numbers with 10^ format in matlab?. Learn more about matlab, write, sprintf, float, number
MathWorks
mathworks.com › matlabcentral › answers › 592723-write-a-vector-with-for-example-10-5-kind-of-numbers
Write a vector with (for example) 10^-5 kind of numbers - MATLAB Answers - MATLAB Central
September 12, 2020 - h = [10^-1 10^-2 10^-3 10^-4 10^-5 10^-6 10^-7 10^-8 10^-9 10^-10 10^-11 10^-12 10^-13 10^-14 10^-15 10^16 10^-17 10^18 10^-19 10^-20] I know I can write it by hand (like I did), but is there a more condence way to do it?
MathWorks
mathworks.com › matlabcentral › answers › 1744070-converting-to-scientific-notation-in-matlab
Converting to scientific notation in matlab - MATLAB Answers - MATLAB Central
June 20, 2022 - You cannot "represent" it that way. A number is just a number. In fact, it is stored in a binary form internally. So you cannot tell MATLAB to store it in some other form, perhaps as scientitfic notation.
MathWorks
mathworks.com › matlab › language fundamentals › entering commands
format - Set output display format - MATLAB
MATLAB always displays integer data types to the appropriate number of digits for the data type. For example, MATLAB uses 3 digits to display int8 data types (for instance, -128:127).
Wikipedia
en.wikipedia.org › wiki › MATLAB
MATLAB - Wikipedia
18 hours ago - >> A = [16, 3, 2, 13 ; 5, 10, 11, 8 ; 9, 6, 7, 12 ; 4, 15, 14, 1] A = 16 3 2 13 5 10 11 8 9 6 7 12 4 15 14 1 >> A(2,3) ans = 11
MathWorks
mathworks.com › matlab › language fundamentals › data types › numeric types
Display Format for Numeric Values - MATLAB & Simulink
Select MATLAB > Command Window, and then choose a Numeric format option.
MathWorks
mathworks.com › matlab › mathematics › elementary math › exponents and logarithms
Powers and Exponentials - MATLAB & Simulink
ans = 3×3 3 6 10 6 14 25 10 25 46 · If A is square and nonsingular, then A^(-p) effectively multiplies inv(A) by itself p-1 times. A^(-3) ans = 3×3 145.0000 -207.0000 81.0000 -207.0000 298.0000 -117.0000 81.0000 -117.0000 46.0000 · MATLAB® calculates inv(A) and A^(-1) with the same algorithm, so the results are exactly the same.
MathWorks
mathworks.com › matlabcentral › answers › 412479-how-do-i-change-the-amount-of-places-before-a-decimal-when-a-number-is-printed-in-scientific-notatio
How do I change the amount of places before a decimal when a number is printed in scientific notation? (i.e. 10e6 rather than... - MATLAB Answers - MATLAB Central
July 27, 2018 - https://www.mathworks.com/matl...atio#answer_330716 ... You would have to write the code for this yourself; MATLAB does not have provision for this....