Info
此问题已关闭。 请重新打开它进行编辑或回答。
Please help me to get rid of this error.
1 次查看(过去 30 天)
显示 更早的评论
siz = size(G) idx = sub2ind(siz, randi([1,4], 1, siz(2)), 1:siz(2)); C = zeros(siz); C(idx) = G(idx)
[ii,jj] = find(C) B = C B(sub2ind(size(C),rem(ii + 1,4)+1,jj)) = C(C>0)
Where G and C are attached as image.
4 个评论
KL
2017-12-18
编辑:KL
2017-12-18
@Prabha: As Guillaume commented on your other question, please provide more information when you ask a question. Before you post your question, this webpage gives your direct hints on how to ask a good question, is it that hard to read it?
Also once an answer solved your problem, please be courteous and accept the answer. You should understand people here are volunteers and do not work for you.
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!