|
"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
|