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.

- MATLAB -
**Lee**, Thursday, July 21, 2011 at 6:18am
nevermind

## Answer This Question

## Related Questions

- programming - Write a program which allows user to enter 10 student names and ...
- programming - Write a MATLAB program to create and output the touch-tone ...
- Javascript - I need help these javascript exericses: Input: A text string, using...
- JavaScript - I need help these javascript exericses: Input: A text string, using...
- Numerical Analysis MATLAB - Using MATLAB to sketch the graph of f(x)=x^3 - x^2...
- Math - Hello! can someone help me how to solve this problem in MATLAB? SHAFT ...
- Physics - Hello! can someone help me how to solve this problem in MATLAB? SHAFT ...
- Multimedia - Not sure if you will get this right away.. but here is the question...
- MatLab - In Matlab Write a function file that determines the following sum (for ...
- Javascript - Input: A text string, using prompt. Output: Either "Valid name" or...

More Related Questions