MATLAB: Convert from cell to a number compare so i have this code, for bbb = 1:counter countermatrix{bbb} = 0; end when i compare countermatrix{1} to 0, it gave me a 0, which means no i think, why is this? i use strcmp(0, countermatrix{1}) returns 0 thanks Best Answer You mean:for bbb = 1:10countermatrix{bbb} = 0;isequal(countermatrix{bbb},0)end Related SolutionsMATLAB: Function repeat number combvec() from the Deep learning toolbox is most easiest solutiona = [1 2 3]b = [1 2 3]C = combvec(a, b).'; % if the order of column is important: C = fliplr(combvec(a, b).');The other solution is to use ndgrid()a = [1 2 3]b = [1 2 3][A, B] = ndgrid(a, b);C = [B(:) A(:)] MATLAB: Generate random’s number out=stream(randi(length(stream))); Related QuestionError Dialog Box for Serial CommunicationWhat’s the licence numberRound to specified decimal number
Best Answer