Sunday
March 29, 2015

Homework Help: MATLAB

Posted by Lee on Thursday, July 21, 2011 at 6:13am.

I got another MATLAB question that I seem to be struggling with.

Use two separate input statements to prompt a user to enter his or her first and last names. Use the disp function to display those names on one line. (You'll need to combine the names and some spaces into a array.)

I'm struggling how to solve this problem. I can solve it using other functions besides disp but not with disp.

I don't think I understand the little hint. "(You'll need to combine the names and some spaces into a array.)".

Here's my attempt at a solution.


x=input('Enter your first name and then hit the enter key.','s');
y=input('Enter your last name and then hit the enter key.','s');

I'm lost as how to further proceed.

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

programming - Write a MATLAB program to create and output the touch-tone ...
MatLab - In Matlab Write a function file that determines the following sum (for ...
programming - Write a program which allows user to enter 10 student names and ...
Computer Science - MATLAB - thanks mathmate. It's way above my head to. I got ...
Computer Science - MATLAB - One interesting property of a Fibonacci sequence is ...
Computer Science - MATLAB - I guess it was skipped One interesting property of a...
Math - Hi I have optimization Qs with MATLAB can you help me and did you know ...
programming MIPS ask - Write a MIPS assembly language program that will cover ...
MATLAB - A load W=2 kN is applied vertically to joint C of truss ABCDE as ...
programming - Using Raptor, create a condition loop that will ask the user for ...

Members