matrix to struct do not match

1 ビュー (過去 30 日間)
Ihaveaquest 2022 年 9 月 15 日
コメント済み: Ihaveaquest 2022 年 9 月 15 日
54X2 and ch1 row size fluctuates
i have them in a B size loop
when ch1 is size 54X6 it works fine when it changes to 52X6 it crashes
its there a modification for it to tranfer the data even if its not the same size ??,B) = ch1(:,1);


James Tursa
James Tursa 2022 年 9 月 15 日
You should really show us all of the actual code in question, not just a wordy description of the code. A better description and your actual code would help us to advise you. The following might work for you, but it might leave old data in spots not set which might not be good.,1),B) = ch1(:,1);
Maybe you would have to do something like this also:,1)+1:end,B) = 0;
Again, hard to say what will actually work for you without knowing more about your problem.
  1 件のコメント
Ihaveaquest 2022 年 9 月 15 日,1),B) = ch1(:,1);
Thank you works like a charm!


その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by