MATLAB

posted by .

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 -

    nevermind

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. JavaScript

    I need help these javascript exericses: Input: A text string, using prompt. Output: Either "Valid name" or "Invalid name", depending on whether the input names fit the required format, which is Last name,first name, middle initial …
  2. Javascript

    I need help these javascript exericses: Input: A text string, using prompt. Output: Either "Valid name" or "Invalid name", depending on whether the input names fit the required format, which is Last name,first name, middle initial …
  3. Javascript

    Input: A text string, using prompt. Output: Either "Valid name" or "Invalid name", depending on whether the input names fit the required format, which is Last name,first name, middle initial where neither of the names have more than …
  4. programming

    Write a program which allows user to enter 10 student names and scores for Java programming 1 and Java programming 2. Allow user to choose which course they want to enter the record for. Use the loop to ask input from user. The program …
  5. programming

    Write a MATLAB program to create and output the touch-tone telephone signals (Dual-Tone, Multi-Frequency, DTMF) for the input numbers 0 through 9 (disregard the * and # symbols). When a user presses a button on a telephone set, a signal …
  6. MatLab

    In Matlab Write a function file that determines the following sum (for all odd n from 1 to 11): y=Ó 2^n/n
  7. Multimedia

    Not sure if you will get this right away.. but here is the question... Prompt the user for their name and then prompt the user for a number between 1 and 12. After getting the input, you will display the user’s name and then display …
  8. Numerical Analysis MATLAB

    Using MATLAB to sketch the graph of f(x)=x^3 - x^2 + 1, x, [-pi,pi] Which code can we use
  9. Physics

    Hello! can someone help me how to solve this problem in MATLAB?
  10. Math

    Hello! can someone help me how to solve this problem in MATLAB?

More Similar Questions