MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   我如何使用Matlab使用带有滞后的向量创建矩阵 (https://www.labfans.com/bbs/showthread.php?t=23739)

poster 2019-12-10 20:48

我如何使用Matlab使用带有滞后的向量创建矩阵
 
vector= 3 4 8 5 2 1 6 the matrix i want to create is 3 0 0 4 3 0 8 4 3 5 8 4 2 5 8 1 2 5 6 1 2

[B]回答:[/B]

[URL="https://stackoverflow.com/questions/3345236/matrix-based-on-vector-and-diagonal-elements1-using-matlab"]您先前的问题之一[/URL]已经解决了这一[URL="https://stackoverflow.com/questions/3345236/matrix-based-on-vector-and-diagonal-elements1-using-matlab"]问题[/URL] 。尽管在[I]此[/I]示例中您没有尝试创建方矩阵,但是仍然可以像[URL="https://stackoverflow.com/questions/3345236/matrix-based-on-vector-and-diagonal-elements1-using-matlab/3345287#3345287"]Jonas的回答中[/URL]一样使用[URL="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/toeplitz.html"]TOEPLITZ[/URL]函数:

M = toeplitz(vector,[vector(1) 0 0]);

[url=https://stackoverflow.com/questions/3357075]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 01:05

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.