matlab 摘要

matlab中的向量与矩阵

  • 如果定义一个A = [1, 2, 3];
    • 则A为一个行向量
    • 但是A(:)返回的是一个列向量

关于函数的返回值

  • 在function [a, b, c] = fit_quadratic(x, y)中
    • 如果我们不适用任何变量来接受这个返回值, 则默认返回a
    • 如果我们使用 [a, b] = fit_quadratic(x, y);则返回a和b
posted @ 2018-10-21 22:11  gogogo11  阅读(436)  评论(0编辑  收藏  举报