Thread Subject: conversion

Subject: conversion

From: vick

Date: 18 Feb, 2009 22:54:01

Message: 1 of 3

I am a beginner at matlab and just trying to figure out how to use the basic commands.
I an working on this problem and can not seem to figure it out, if any one can help me with the code will be appreciated.
Matlab can be used to generate various conversion tables. Create a matrix that has three columns, as follows:
• The first column has weights in grams from zero to 2000 with an increment of 100.
• The second column has the equivalent weights in pounds.
• The third column has the equivalent weights in ounces.
(one pound = 16 ounces = 454 grams)
Then generate a conversion table by first displaying a table header and column headers and then displaying the three-column matrix.

Subject: conversion

From: James Tursa

Date: 18 Feb, 2009 23:11:01

Message: 2 of 3

"vick " <rancidat20@aol.com> wrote in message <gni3i9$jc1$1@fred.mathworks.com>...
> I am a beginner at matlab and just trying to figure out how to use the basic commands.
> I an working on this problem and can not seem to figure it out, if any one can help me with the code will be appreciated.
> Matlab can be used to generate various conversion tables. Create a matrix that has three columns, as follows:
> • The first column has weights in grams from zero to 2000 with an increment of 100.
> • The second column has the equivalent weights in pounds.
> • The third column has the equivalent weights in ounces.
> (one pound = 16 ounces = 454 grams)
> Then generate a conversion table by first displaying a table header and column headers and then displaying the three-column matrix.

Generally, you need to show this group some code of what you have already tried before we will be willing to help you fix it. We are not going to do your homework for you from scratch.

James Tursa

Subject: conversion

From: vick

Date: 19 Feb, 2009 02:54:01

Message: 3 of 3

"James Tursa" <aclassyguywithaknotac@hotmail.com> wrote in message <gni4i5$5d3$1@fred.mathworks.com>...
> "vick " <rancidat20@aol.com> wrote in message <gni3i9$jc1$1@fred.mathworks.com>...
> > I am a beginner at matlab and just trying to figure out how to use the basic commands.
> > I an working on this problem and can not seem to figure it out, if any one can help me with the code will be appreciated.
> > Matlab can be used to generate various conversion tables. Create a matrix that has three columns, as follows:
> > • The first column has weights in grams from zero to 2000 with an increment of 100.
> > • The second column has the equivalent weights in pounds.
> > • The third column has the equivalent weights in ounces.
> > (one pound = 16 ounces = 454 grams)
> > Then generate a conversion table by first displaying a table header and column headers and then displaying the three-column matrix.
>
> Generally, you need to show this group some code of what you have already tried before we will be willing to help you fix it. We are not going to do your homework for you from scratch.
>
> James Tursa




>> M (:,1:2)

ans =

    1.3000 3.5000
   -1.0000 0
   -2.1000 0
    7.4000 -0.2000
    0.9000 -12.0000

>> M (3:5,1:3)



ans =

    1.3000 3.5000 -1.8000
   -2.1000 0 1.3000
    0.9000 -12.0000 5.0000

>> x = -5:0.05:+5;
>> size (x)

ans =

     1 201

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 vick 18 Feb, 2009 21:55:06
conversion vick 18 Feb, 2009 21:52:23
homework James Tursa 18 Feb, 2009 18:08:40
rssFeed for this Thread

Contact us at files@mathworks.com