Info
この質問は閉じられています。 編集または回答するには再度開いてください。
half the first NaN value after the last non NaN value in each column
1 回表示 (過去 30 日間)
古いコメントを表示
Hi, I have a matrix
p = [NaN 2 NaN;
2 4 NaN;
2 6 8;
NaN 8 2;
NaN NaN 1;
NaN NaN 1]
The realized matrix
p1 = [NaN 2 NaN;
2 4 NaN;
2 6 8;
1(half of 2) 8 2;
NaN 4(half of 8) 1;
NaN NaN 1]
... Notice: Only the first NaN after the last non NaN value in each column is halved with the last non NaN value.. while the other NaN stay as they were.. Thank you for your answers. BR
0 件のコメント
回答 (2 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!