필터 지우기
필터 지우기

I want to use between two values while plotting

조회 수: 1 (최근 30일)
Huseyin Kaan
Huseyin Kaan 2022년 10월 4일
댓글: KSSV 2022년 10월 4일
I need to draw a graph which my ''a'' value must be between 0 and 1 and graph is a.^x
Shortly i want a.^x graphic and ''a'' has to go 0 to 1
I tried something like this but didn't work
a=(0,1);
y=a.^x;
plot(x,y)
i don't know how to set ''a'' 0 to 1. If i have another mistake(s) please help me!
  댓글 수: 2
Huseyin Kaan
Huseyin Kaan 2022년 10월 4일
I might have english grammer and vocabulary mistakes sorry already.
Geoff Hayes
Geoff Hayes 2022년 10월 4일
@Huseyin Kaan - what is x defined to be?

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

채택된 답변

KSSV
KSSV 2022년 10월 4일
a=linspace(0,1,50) ;
x=linspace(0,1,50) ;
[X,Y] = meshgrid(a,x) ;
Z=X.^Y;
surf(X,Y,Z)
  댓글 수: 2
Huseyin Kaan
Huseyin Kaan 2022년 10월 4일
I only need 2D sorry for not mentioning it
KSSV
KSSV 2022년 10월 4일
For what value of x?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by