Friday
May 24, 2013

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

Math - Hi I have optimization Qs with MATLAB can you help me and did you know ...
Computer Science - MATLAB - thanks mathmate. It's way above my head to. I ...
Using Matlab - imagine you have a simple calculator that can only do addition,...
MaTH - Is anyone good at using matlab
Computer Science - MATLAB - Thanks MathMate. Print plotting sounds awful O_O. ...
MATLAB for MathMate - Would you please help Lee with his problem? Sra
matlab - One bank pays 5.5 percent annual interest, while a second bank pays 4.5...
Computer Science - MATLAB - Create a stacked contour plot of the MRI data, ...
Computer Science(python) - Service Price Basic Lawn Mowing $20 Trimming and ...
QUESTION ABOUT JISHKA - Do you guys have a tutor that specialized in computer ...

For Further Reading

Search
Members
Community