Basic Plotting Function Programmatically
Learn how to create and interact with plots in MATLAB®, which is an important part of creating MATLAB code. Anyone – from beginners hoping to create their first plot to advanced users looking for a refresher – can use these plotting techniques and functions. This video covers making and plotting data, and it shows different plot screen positioning options and plot appearance options.
The video first walks through the process of creating sets of numbers that are ready to be inputted into a plot. It illustrates how you can quickly make sample data for a plot using commands like randn and linspace. Then, the video covers the plot function itself, and it shows how using the plot function instantly creates a plot figure window containing the data.
Next, you’ll learn about the options for moving and positioning your plot around the MATLAB environment. This includes the hold on/hold off commands, docking and undocking plots, and the axes toolbar, all of which allow you to manipulate your plot’s location.
Finally, the video covers options for changing a plot’s appearance. This includes adding titles, axes labels, and legends, and editing a plot’s lines and markers in shape, style, and color.
For more information on plotting, you can use help and documentation right from within MATLAB.
Published: 27 Sep 2019
Featured Product
MATLAB
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
亚太
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)