Info

此问题已关闭。 请重新打开它进行编辑或回答。

Please help me to get rid of this error.

1 次查看(过去 30 天)
Prabha Kumaresan
Prabha Kumaresan 2017-12-18
关闭: MATLAB Answer Bot 2021-8-20
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
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.
Stephen23
Stephen23 2017-12-18
编辑:Stephen23 2017-12-18
@ Prabha Kumaresan: screen-shots of data cannot be loaded as numeric data, and are useless as a way of transferring data. No one will sit and copy those out. If you want help then please provide the complete error message, this means all of the red text.

回答(0 个)

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by