Stuart’s MATLAB Videos

Watch and Learn

MATLAB Basics: Linearly spaced vectors

当我查看新用户编写的代码时,有时会看到这样的代码:a = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15];有一个简单的方法:a = 1:13;这个三分钟的视频显示了如何使用Linspace和Colon Operator等命令来制作矢量:[1 2 3 4 5]或[-1 -0.5 0 0.5 1]。
Other videos have been gathered here:https://blogs.mathworks.com/pick/category/video/Other MATLAB Basics posts have been gathered here:https://blogs.mathworks.com/pick/category/matlab-basics/
|

Comments

To leave a comment, please clickhereto sign in to your MathWorks Account or create a new one.