setting bins for 3D histogram
Mostrar comentarios más antiguos
I can generate a 3D histogram using the command
>> hist3(affin_occur_z2(1:11046,1:2));figure(gcf);
but I want to change the default number of bins (10) to something like 100.
I think the number of bins should go where the question mark is, but I get a "number of bins must be specified with a 2-element numeric vector" if I put a number there. >> hist3(affin_occur_z2(1:11046,1:2)?);figure(gcf);
What is the correct format?
Thank you very much.
Respuesta aceptada
Más respuestas (1)
Dave Aceti
el 12 de Mzo. de 2014
0 votos
1 comentario
Star Strider
el 12 de Mzo. de 2014
Eliminating the (') in this line should eliminate the string termination error:
'hist3(affin_occur_z2(1:11046,1:2),100);figure(gcf);
try:
hist3(affin_occur_z2(1:11046,1:2),100);figure(gcf);
For ‘Error using hist3 (line 111) The number of bins must be specified with a 2-element numeric vector.’, please see the hist3 documentation. It explains it much better than I ever could. Click on the entries under the Examples section near the end of the page.
Categorías
Más información sobre Design of Experiments (DOE) en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!