Hi,
Here is a rather simple answer:
[A1,A2,A3,A4] = ndgrid([1 2 1 2]);
VERS = [A1(:), A2(:), A3(:), A4(:)]
SUM_VERS = sum(VERS, 2)
Good luck.
Info
此问题已关闭。 请重新打开它进行编辑或回答。
此问题已关闭。
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!