Write a script for explicitly display of values, Programming Languages

Write a script called 'prob1.m' that solves for the variables y, and z in terms of a user inputed x. The variables y and z are defined as follows:

y = x - 30                when 0 < x < 100

= 0.20*x + 800       when x > 100

= -50                   otherwise

z = -1                 when x < 0

=  0                   when x = 0

=  1                   when x > 0

Your script should prompt the user to input a value of x (use the input function). Next it should compute the values of y and z (surpress the output at first). Finally it should explicitly display the values of x, y, and z. From with the 'hw4.m' script call 'prob1.m'.

 

Posted Date: 3/22/2013 6:55:54 AM | Location : United States







Related Discussions:- Write a script for explicitly display of values, Assignment Help, Ask Question on Write a script for explicitly display of values, Get Answer, Expert's Help, Write a script for explicitly display of values Discussions

Write discussion on Write a script for explicitly display of values
Your posts are moderated
Related Questions
Your task will be to code a simulation of image compression based on the approximate low rank structure of the set of image patches. You will write functions .code = my block compr

about how to create the program in c

1. Write a function that converts a character array to a signed decimal integer. Function prototype must be as follows: int asciiToInt( char *str, unsigned char* eflag) YOU MAY NO

Topic Develop a Web site that will provide information about your organization. The Web site will need to have a user-friendly interface for users to enter their information;

Architecture and Components The .NET Framework 3.5 The .NET Structure (pronounced dot net) is an application framework that works generally on Enthusiasm Microsoft windows. It has

Create the class Robot described in the Karel++ book. Description: The Robot class described in the Karel++ text is a derived class of ur_Robot. Create class Robot as a d

Is it possible to get an assignment done within 2 hours

What is an abstract class:   Abstract class is stated as an abstract concept that cannot be instantiated or comparing to interface this can have some implementation and interface c


I need to write code to compute matrix multiplication without using built in function.