Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
MATLAB: A Practical Introduction to Programming and Problem Solving
by
Stormy Attaway
Edition:
Fourth Edition
ISBN13:
ISBN10:
459
Matlab
Home
Books
MATLAB: A Practical Introduction to Programming and Problem Solving
Similar Books
No books found
Title
Chapter: 7 /
Q: 3.7
Write a script that will, in a loop, prompt the user for four course numbers. Each will be a string of length 5 of the form ‘CS101’. These strings are to be stored in a character matrix
Chapter: 7 /
Q: 4.7
Write a function that will generate two random integers, each in the inclusive range from 10 to 30. It will then return a string consisting of the two integers joined together, e.g
Chapter: 7 /
Q: 5.7
Write a script that will create x and y vectors. Then, it will ask the user for a color (‘red’, ‘blue’, or ‘green’) and for a plot style (circle or star). It will then create a string pstr that contains the color and plot style, so that the call to the plot function would be:
Chapter: 7 /
Q: 6.7
Assume that you have the following function and that it has not yet been called
Chapter: 7 /
Q: 7.7
Explain in words what the following function accomplishes (not step-by-step, but what the end result is)
Chapter: 7 /
Q: 8.7
Write a function that will receive a name and department as separate strings and will create and return a code consisting of the first two letters of the name and the last two letters of the department
Chapter: 7 /
Q: 9.7
Write a function “createUniqueName” that will create a series of unique names. When the function is called, a string is passed as an input argument. The function adds an integer to the end of the string,
Chapter: 7 /
Q: 10.7
What does the blanks function return when a 0 is passed to it? A negative number? Write a function myblanks that does exactly the same thing as the blanks function, using the programming method. Here are some examples of calling it:
Chapter: 7 /
Q: 11.7
Write a function that will prompt the user separately for a filename and extension and will create and return a string with the form ‘filename.ext’
Chapter: 7 /
Q: 12.7
Write a function that will receive one input argument, which is an integer n. The function will prompt the user for a number in the range from 1 to n (the actual value of n should be printed in the prompt) and return the user’s input
total questions:
459
Previous
21
22
23
24
25
Next
Questions
459
Views
Best Answers
299
Points
5
×
Close
add reason
reason