matlab画图命令笔记

1 函数画图fplot

% Create a function plot of y = x^3 over the domain of [-2 2].
% Plot with a thick red line.
fplot(@(x) x.^3, [-2 2], 'r', 'LineWidth',2) 
% Add labels and title
xlabel('x')
ylabel('y')
title('y = x^3')

参考网站:

https://ww2.mathworks.cn/matlabcentral/profile/authors/3166380-mathworks-plot-gallery-team

https://ww2.mathworks.cn/matlabcentral/fileexchange/?term=authorid:196102

猜你喜欢

转载自www.cnblogs.com/doctornut/p/10698226.html
今日推荐