How to generate 1 cross zero structure in Matlab??

1 回表示 (過去 30 日間)
Ashish Mishra
Ashish Mishra 2020 年 1 月 16 日
コメント済み: Ashish Mishra 2020 年 1 月 16 日
I have an empty structure with some field names as mentioned below:
A = struct('offsetNextCh',{},'channelId',{},'txpowerControl',{},'persistEnable',{});
Now, if I want to have a structure(say B) with the same fields, which is 1 cross zero structure
I tried this
B = A(1,[]);
  2 件のコメント
Stephen23
Stephen23 2020 年 1 月 16 日
編集済み: Stephen23 2020 年 1 月 16 日
Note that standard English refers to matrix sizes as "one by zero", not "one cross zero", see for example:
The cross is just a symbol used to help represent the matrix size, but the symbol name itself is not used (any more than we would say "six obelus three" instead of "six divided by three" or similar).
Ashish Mishra
Ashish Mishra 2020 年 1 月 16 日
Thanks Stephen,
Will keep that in mind.

サインインしてコメントする。

採用された回答

Stephen23
Stephen23 2020 年 1 月 16 日
B = reshape(A,1,0)

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by