answer in array form

조회 수: 3 (최근 30일)
Chris
Chris 2013년 2월 2일
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
Shashank Prasanna
Shashank Prasanna 2013년 2월 2일
Not clear, what have you tried already?

댓글을 달려면 로그인하십시오.

답변 (3개)

Image Analyst
Image Analyst 2013년 2월 2일
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 2013년 2월 2일

3nore
3nore 2013년 2월 2일

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by