Why are you using loops for this? Everything can be calculated in one line.
Why are you storing scalar values in a cell array? A simple 3D matrix would work
What 1 and 2 do you want to count? It's very unlikely that a normal distribution will contain either 1 or 2 exactly. Most likely the count is going to be 0 of each.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
1 Comment
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/460740-hi-every-body-how-can-i-count-the-number-of-1-and-2-and-3-in-each-cell-that-corrispond-to-x-y-z#comment_702695
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/460740-hi-every-body-how-can-i-count-the-number-of-1-and-2-and-3-in-each-cell-that-corrispond-to-x-y-z#comment_702695
Sign in to comment.