1. 程式人生 > >matlab畫圖命令筆記

matlab畫圖命令筆記

lee profile labels .cn 網站 exc bce 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

matlab畫圖命令筆記