Use the exponential function exp(y) to compute e^y. For example:
x = 0.2;
Result = (x^2)*exp(4)
Result =
2.1839 Answer from Star Strider on mathworks.com
what is meant by 3e4 in matlab?
I am reading a program M = 16; k = log2(M); n = 3e4; nsamp = 1; kindly tell me the meaning of "3e4" as soon as possible.... More on mathworks.com
How do i convert scientific notation into number in matlab
Although the variable a is indeed ... it for example MATLAB throws "Warning: Integer operands are required for colon operator when used as index" because it views the scientific notation as a decimal. I believe what Jasmeet was asking is how to make MATLAB understand a value such as 1.0400e+4 as the whole ... More on mathworks.com
notation - the meaning of "e" in matlab output - Stack Overflow
In matlab, especially when testing a neural network, we see a special type of output. for example, 3.332e-23 or 5.e-235. What is the meaning of "e" in the context of the output? More on stackoverflow.com
10e5 == 10^5 is not true in MATLAB
If you type in 10e5 == 10^5 ans = logical 0 so 10e5 does NOT mean 10 to the power of 5 but it means 10 to the power of 6. 10e5 == 10^6 ans = logi... More on mathworks.com
MathWorks
mathworks.com › matlab › mathematics › elementary math › exponents and logarithms
Powers and Exponentials - MATLAB & Simulink
This topic shows how to compute matrix powers and exponentials using a variety of methods.
MathWorks
mathworks.com › matlabcentral › answers › 299091-how-do-i-convert-scientific-notation-into-number-in-matlab
How do i convert scientific notation into number in matlab - MATLAB Answers - MATLAB Central
August 10, 2016 - Although the variable a is indeed stored as a number, when trying to index with it for example MATLAB throws "Warning: Integer operands are required for colon operator when used as index" because it views the scientific notation as a decimal. I believe what Jasmeet was asking is how to make MATLAB understand a value such as 1.0400e+4 as the whole number 10400 that it is, instead of as a non-whole number.
Top answer 1 of 2
10
It is scientific notation, where e is shorthand for *10^.
You can change the output type in the console using the format command. For example . . .
>> x = 1.123456e5
x =
1.1235e+05
>> format long
>> x
x =
1.123456000000000e+05
>> format longG
>> x
x =
112345.6
>> format hex
>> x
x =
40fb6d999999999a
2 of 2
7
It's scientific notation. AeB denotes A x 10B.
Top answer 1 of 11
1
My dear Dr. Kareem
you are really great researcher
I don't realize that your point is worthy until i read your complete argument.
Great job, and I hope that they add it.
2 of 11
0
This is a coding language, not an award ceremony.
you can get euler's number with exp(1);
on the other hand, the number 'pi' can not be calculated directly from an operator like pi(1).
the imaginary number (i) can be written as sqrt(-1); but establishing distinction in the programming language between real and imaginary numbers requires declaring (i).
there are other important numbers which aren't represented at all. i.e. Fibonacci's number. what could be more important than the divine constant?
anyway, create the following matlab scrcipt:
function out=e
out = exp(1);
end
and name the file e.m, and place it in your MATLAB path.
i hope this solves your problem.
MathWorks
mathworks.com › matlabcentral › answers › 512494-format-number-exponential-notation
Format Number (exponential notation) - MATLAB Answers - MATLAB Central
March 23, 2020 - I have a code and a result is the variabile: T= 5.6789e-05 I want use a function for change the exponential notation from e-05 to e-6 and print the value in a graph. Correct value T= 56.789...
MathWorks
mathworks.com › matlabcentral › answers › 646873-euler-s-number-syntax-in-matlab
Euler's number syntax in matlab - MATLAB Answers - MATLAB Central
November 13, 2020 - How do I type euler's number in matlab for the follwing function with t being an input of vectors and xN should be the same size vector of t? xN=C1*e^(S1*t)+C2*e^(S2*t) e is meant to be Euler's n...
EDUCBA
educba.com › home › data science › data science tutorials › matlab tutorial › matlab exponential
MATLAB Exponential | 7 Types of Exponential Function in MATLAB
June 4, 2025 - So, in this article, we learned how to use the exponential function in MATLAB. We can use exp(x) syntax in MATLAB to calculate the exponential of any function which is passed as an argument.
Call +917738666252
Address Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
MathWorks
de.mathworks.com › matlab › mathematics › elementary math › exponents and logarithms
Exponentialfunktion - MATLAB exp
June 17, 2020 - This MATLAB function returns the exponential ex for each element in array X.
Wikipedia
en.wikipedia.org › wiki › MATLAB
MATLAB - Wikipedia
2 weeks ago - MATLAB is a weakly typed programming language because types are implicitly converted. It is an inferred typed language because variables can be assigned without declaring their type, except if they are to be treated as symbolic objects, and that their type can change. Values can come from constants, from computation involving values of other variables, or from the output of a function. ... >> x = 17 x = 17 >> x = 'hat' x = hat >> x = [3*4, pi/2] x = 12.0000 1.5708 >> y = 3*sin(x) y = -1.6097 3.0000
Reddit
reddit.com › r/matlab › i need help. how do i write this function in matlab?
r/matlab on Reddit: I need help. How do I write this function in MatLab?
September 14, 2021 -
Does e stand for euler's number? But it still says that my y1 value is incorrect...
Top answer 1 of 2
1
you need to take a look at MATLAB syntax. Here is the equation you are trying to write: y = exp(0.5x)sin(2x) Here is what you actually wrote: y = exp(1)0.5x sin(2)x What you wrote was exponential to power of 1, times x halved, times sin of radians 2, times x. In MATLAB, to use the exponential function correctly you’d want exp(0.5.*x), same with the sin function: sin(2.*x) The command window is a great tool. Why not compare what exp(1) produces with exp(x)? Test everything to understand the syntax. Also use the documentation for any function. For example, for documentation of exp, type “help exp” or “doc exp”.
2 of 2
1
You might be technically right that exp(1) is just Euler's number, but that is absolutely not how that function is supposed to be used. I would preallocate a vector y1 the same length as x with zeros, and then loop over y1 and calculate each entry in that vector. That is, loop the expression y1(i)=exp(0.5*x(i))*sin(2*x(i)) for i=1:length(x). EDIT: I'm also curious about why you're using loglog. The scale of the axes don't require it at all. EDIT 2: I also tried it with y1=exp(1).^(0.5*x).*sin(2.*x) and that got the same answer as the looping solution I initial suggested. EDIT 3: Also, this equation has basically the form of a damped vibration, so the negative values would actually be of interest; thus using loglog() doesn't make any sense.