answer in array form

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.

回答(3 个)

Image Analyst
Image Analyst 2013-2-2

0 个投票

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.

类别

帮助中心File Exchange 中查找有关 Logical 的更多信息

产品

标签

提问:

2013-2-2

Community Treasure Hunt

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

Start Hunting!

Translated by