SCLREXPND

版本 1.0.0.0 (714 字节) 作者: Mukhtar Ullah
expands scalars to the size of non-scalars.
2.0K 次下载
更新时间 2005/1/27

无许可证

SCLREXPND expands scalars to the size of non-scalars.
[X1,X2,...,Xn] = SCLREXPND(X1,X2,...,Xn) expands the scalar
arguments, if any, to the (common) size of the non-scalar arguments,
if any.

[X1,X2,...,Xn,SIZ] = SCLREXPND(X1,X2,...,Xn) also returns the
resulting common size in SIZ.

Example:
>> c1 = 1; c2 = rand(2,3); c3 = 5; c4 = rand(2,3);
>> [c1,c2,c3,c4,sz] = SCLREXPND(c1,c2,c3,c4)

c1 =
1 1 1
1 1 1

c2 =
0.7036 0.1146 0.3654
0.4850 0.6649 0.1400

c3 =
5 5 5
5 5 5

c4 =
0.5668 0.6739 0.9616
0.8230 0.9994 0.0589

sz =
2 3

引用格式

Mukhtar Ullah (2024). SCLREXPND (https://www.mathworks.com/matlabcentral/fileexchange/6114-sclrexpnd), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Sources and Sinks 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0

Renamed to SCLREXPND