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=23299)

poster 2019-12-10 20:30

在MATLAB中最好的捷径是什么?
 
padColor = [bgColor bgColor bgColor]; padColor = reshape(padColor,1,1,3); 如何以更紧凑的方式(更少的代码/复制)完成上述操作?



[B]回答:[/B]

ones(1,1,3)*bgColor

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


所有时间均为北京时间。现在的时间是 03:00

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