Borrar filtros
Borrar filtros

How do i store data with a command in matlab?

2 visualizaciones (últimos 30 días)
Nick Haufler
Nick Haufler el 29 de Sept. de 2015
Respondida: Walter Roberson el 29 de Sept. de 2015
I need to store data like it shows in this document in part B. How would i do that, is there a specific store values command or not.

Respuesta aceptada

Image Analyst
Image Analyst el 29 de Sept. de 2015
Nick, I don't know what you mean by store data - like store in a variable, or store in a file on disk. Perhaps for part B you just want to compute your variables and then print them to the command window with fprintf(), then transfer then to your homework form. If you don't even know how to create and use variables, then see this: http://www.mathworks.com/matlabcentral/answers/8026-best-way-s-to-master-matlab
  1 comentario
Nick Haufler
Nick Haufler el 29 de Sept. de 2015
So would I create a variable for each number on the dice? or just one single variable to store every number?

Iniciar sesión para comentar.

Más respuestas (1)

Walter Roberson
Walter Roberson el 29 de Sept. de 2015
counts(roll) = counts(roll) + 1

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by