how can I plot this exponential function?
古いコメントを表示
hi, I have the following function g with the values of x
x = linspace(-2,2)
G = @(x) exp(x) .* (x <= 0) + sin(2*pi*x)./max(x,realmin) .* (x>0);
I tried to plot G using
plot(G,x)
but I am getting error. How can I plot G?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Labels and Styling についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!