Filter löschen
Filter löschen

I want to use between two values while plotting

1 Ansicht (letzte 30 Tage)
Huseyin Kaan
Huseyin Kaan am 4 Okt. 2022
Kommentiert: KSSV am 4 Okt. 2022
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 Kommentare
Huseyin Kaan
Huseyin Kaan am 4 Okt. 2022
I might have english grammer and vocabulary mistakes sorry already.
Geoff Hayes
Geoff Hayes am 4 Okt. 2022
@Huseyin Kaan - what is x defined to be?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

KSSV
KSSV am 4 Okt. 2022
a=linspace(0,1,50) ;
x=linspace(0,1,50) ;
[X,Y] = meshgrid(a,x) ;
Z=X.^Y;
surf(X,Y,Z)
  2 Kommentare
Huseyin Kaan
Huseyin Kaan am 4 Okt. 2022
I only need 2D sorry for not mentioning it
KSSV
KSSV am 4 Okt. 2022
For what value of x?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by