I want to use between two values while plotting
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
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)
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!