answer in array form

10 visualizaciones (últimos 30 días)
Chris
Chris el 2 de Feb. de 2013
I am trying to create a code for a class i am in. The teacher wants the answer in array form. However, I input only one value. She wants input, output answer in array form. How do I do this? I am new to MATLAB and this is my first programming experience. aka: noob.
  1 comentario
Shashank Prasanna
Shashank Prasanna el 2 de Feb. de 2013
Not clear, what have you tried already?

Iniciar sesión para comentar.

Respuestas (3)

Image Analyst
Image Analyst el 2 de Feb. de 2013
A single value is really more of a scalar than an array. An array of one is really not an array like most people think of it. Why don't you enter two values or more so that you can meet the requirements for your class assignment? Try using inputdlg() - follow the examples in the help.

Azzi Abdelmalek
Azzi Abdelmalek el 2 de Feb. de 2013

3nore
3nore el 2 de Feb. de 2013

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by