Cody

Problem 43193. Where is 1?

There is a 3d matrix [A] that consist of many zeros and only one.

A=zeros(100,100,100);
i=randi(100);
j=randi(100);
k=randi(100);
A(i,j,k)=1;

Where is one? Find [i j k].

(hint:use find and ind2sub)

Solution Stats

22.58% Correct | 77.42% Incorrect
Last Solution submitted on Jul 02, 2020

Problem Comments