MATLAB Answers

How to generate 1 cross zero structure in Matlab??

7 views (last 30 days)
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 Comments

Stephen Cobeldick
Stephen Cobeldick on 16 Jan 2020
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).

Sign in to comment.

Accepted Answer

Stephen Cobeldick
Stephen Cobeldick on 16 Jan 2020
B = reshape(A,1,0)

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.


Translated by