Problem with Graphs with MATLAB
古いコメントを表示
I am very new to MATLAB, and am trying to plot a simple graph. I want MATLAB to integrate a function between 0 and an variable upper limit, and then plot the upper limit and value of integral on a graph. The programme works - I can see it generating the answers, but for some reason the graph doesn't plot. My very simple code is:
syms a f x y z
for x=0:0.1:1
func=a./(a.*0.3 + 8*10^-5 + (a.^4).*0.7)^0.5;
y=double(int(func,0,x))
plot(x, y,'r')
hold on
end
Obviously I am doing something wring, but cannot see what. Any help is gratefully received!
Mike
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File 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!