Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: Help me for the below question for making m-files!! URGENT!!

Subject: Help me for the below question for making m-files!! URGENT!!

From: den chai

Date: 24 Jun, 2008 04:38:02

Message: 1 of 3

1. Write an m-file script that calculates the amount
of monthly loan repayment for a car. The script should
prompt the user for the input of the following: the loan
amount, period of repayment and interest rate. Make a
comparison between different interest rates and period of
repayment.

2. Write an m-file script that prompts the user for
the radius and an angle (in degrees) subtended at the
centre of a circle. The centre of this circle is at the
origin. The script is then able to plot the circle and
calculate the following:
(a) The length of the arc that subtends this angle
(b) The area of the sector that contains this angle
(c) The circumference and area of the circle

3. Write an m-file script that creates a plot of the
functions f(x) = 3x2, g(x) = 3(x + 5)2 and h(x) = 3x2 + 5
for x [-5, 5] on the same set of axes.
(a) Use different line specifications for the two
different functions. A legend should be included to
identify the graph of the functions.
(b) Create appropriate labels for the axes.

Subject: Re: Help me for the below question for making m-files!! URGENT!!

From: John D'Errico

Date: 24 Jun, 2008 08:14:05

Message: 2 of 3

"den chai" <denmy501@hotmail.com> wrote in message
<g3ptna$56t$1@fred.mathworks.com>...
> 1. Write an m-file script that calculates the amount
> of monthly loan repayment for a car. The script should
> prompt the user for the input of the following: the loan
> amount, period of repayment and interest rate. Make a
> comparison between different interest rates and period of
> repayment.
>
> 2. Write an m-file script that prompts the user for
> the radius and an angle (in degrees) subtended at the
> centre of a circle. The centre of this circle is at the
> origin. The script is then able to plot the circle and
> calculate the following:
> (a) The length of the arc that subtends this angle
> (b) The area of the sector that contains this angle
> (c) The circumference and area of the circle
>
> 3. Write an m-file script that creates a plot of the
> functions f(x) = 3x2, g(x) = 3(x + 5)2 and h(x) = 3x2 + 5
> for x [-5, 5] on the same set of axes.
> (a) Use different line specifications for the two
> different functions. A legend should be included to
> identify the graph of the functions.
> (b) Create appropriate labels for the axes.

Applications are now being taken for your
employment at the nearest Burger King.
Enjoy your lifelong career behind the
counter. Do ya want fries with that?

Subject: Re: Help me for the below question for making m-files!! URGENT!!

From: Rune Allnor

Date: 24 Jun, 2008 10:02:26

Message: 3 of 3

On 24 Jun, 06:38, "den chai" <denmy...@hotmail.com> wrote:
> 1. =A0 =A0 =A0Write an m-file script that calculates the amount
> of monthly loan repayment for a car. The script should
> prompt the user for the input of the following: the loan
> amount, period of repayment and interest rate. Make a
> comparison between different interest rates and period of
> repayment.
>
> 2. =A0 =A0 =A0Write an m-file script that prompts the user for
> the radius and an angle (in degrees) subtended at the
> centre of a circle. The centre of this circle is at the
> origin. The script is then able to plot the circle and
> calculate the following:
> (a) =A0 =A0 The length of the arc that subtends this angle
> (b) =A0 =A0 The area of the sector that contains this angle
> (c) =A0 =A0 The circumference and area of the circle
>
> 3. =A0 =A0 =A0Write an m-file script that creates a plot of the
> functions f(x) =3D 3x2, g(x) =3D 3(x + 5)2 and h(x) =3D 3x2 + 5
> for x =A0 [-5, 5] on the same set of axes.
> (a) =A0 =A0 Use different line specifications for the two
> different functions. A legend should be included to
> identify the graph of the functions.
> (b) =A0 =A0 Create appropriate labels for the axes.

You will find what you need here:

http://www.mathworks.com/access/helpdesk/help/techdoc/index.html

If it's too much bother for you to check out the
matlab docs or do your own homework, others have
already made excellent suggestions about carreer
choises that likely will be more suitable for you.

Rune

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
homework shameless John D'Errico 24 Jun, 2008 03:54:36
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics