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
原文地址:https://www.cnblogs.com/megachen/p/9827276.html