How to plot a y=e^x function

조회 수: 48 (최근 30일)
Monica DelaCruz
Monica DelaCruz 2018년 2월 24일
편집: Dyuman Joshi 2024년 1월 27일
I have the task to plot a graph using the function y=e^x but I am having trouble with the constant e. Do I have to define e first? or is there another way to rewrite this equation?

채택된 답변

Stephen23
Stephen23 2018년 2월 24일
편집: Stephen23 2018년 2월 24일
  댓글 수: 1
Dyuman Joshi
Dyuman Joshi 2024년 1월 20일
편집: Dyuman Joshi 2024년 1월 27일
This can be obtained using fplot as well -
%Plot the exp function from x = -2 to x = 3
fplot(@exp, [-2 3])

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by