There are four columns in each row, I want to add four arrays in each row to get a new array, but some of the rows have , and I get an error when I run the addition, how can I handle it? The screenshot of structure is presented following:
I wrote some code, but it was wrong and did not work
if ~isempty(O(m).A1) || ~isempty(O(m).A2) || ~isempty(O(m).A3) || ~isempty(O(m).A4)
O(m).A5 = O(m).A1 + O(m).A2 + O(m).A3 + O(m).A4;
Thanks in advance for the support and help!