Cyriis
2007-11-09 00:22:18 |
Matlab question
Hi I'm learning MatLab currently, and I'm having trouble with the nd half of this problem, it should be easy to someone who knows the program...
Create an array 'x' having six values between 0 and 10 (inclusive). Create and array A whose first row contains 3x, and the second row contains the values 5x-20.
I got this first part
x=linspace(0,10,6)
A=[3*x;5*x-20]
yielding
A=[0,6,12,18,24,30]
[-20,-10,0,10,20,30]
The second part of the problem, they want the first COLUMN to be 3x, and the second column to be 5x-20. How do I display the answer vertically?
|
brianjn
2007-11-09 17:24:12 |
Re: Matlab question
While I cannot be assistance to you re the specifics of this, I see that Wikipedia has some tutorial links that might be a help if noone else here can provide you with what you need.
Click the link here http://en.wikipedia.org/wiki/MATLAB. At the bottom of the page are external links, some are specific tutorials. |
Cyriis
2007-11-09 18:12:35 |
Re: Matlab question
Thanks, I found exactly what I needed... |