plotting a graph for an polinomial with exp(x)
显示 更早的评论
clc
clear all
x=-pi:.1:pi;
y=exp(x)+x^2;
plot(x,y)
when I write that (y) equation; matlab says "Inputs must be a scalar and a square matrix."
How can I plot that equ. please help me. thanks for your interest..
回答(1 个)
Azzi Abdelmalek
2013-11-1
编辑:Azzi Abdelmalek
2013-11-1
x.^2 instead of x^2
x=-pi:.1:pi;
y=exp(x)+x.^2;
plot(x,y)
类别
在 帮助中心 和 File Exchange 中查找有关 Graph and Network Algorithms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!