d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > Homework Help > Anyone Know How To Use Matlab? > Having Some Trouble Figuring A Few Thing
Add Reply New Topic New Poll
Member
Posts: 2,724
Joined: Sep 23 2012
Gold: 300.00
Sep 7 2015 02:34pm
Trying to figure out how to do log space from one number to another
Eg.
l where l is a vector 5 log spaced points between 12 and 82

m where m is a vector with 6 linearly spaced points bewtween 5 and 47


n where n is a vector with data points between 2 and 89. the first datapoint is 2 and each subsuquent data point is 13 larger than the previous


This post was edited by holychikenz on Sep 7 2015 02:37pm
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Sep 7 2015 02:39pm
sounds like you just need to graph the function and add a few points to the graph. what have you tried so far?
Member
Posts: 2,724
Joined: Sep 23 2012
Gold: 300.00
Sep 7 2015 02:42pm
>> l = logspace(12,82,5)

l =

1.0e+82 *

0.0000 0.0000 0.0000 0.0000 1.0000

>> m= linspace(5,47,6)

m =

5.0000 13.4000 21.8000 30.2000 38.6000 47.0000
Member
Posts: 2,724
Joined: Sep 23 2012
Gold: 300.00
Sep 7 2015 03:05pm
Figured it out. can close

This post was edited by holychikenz on Sep 7 2015 03:05pm
Go Back To Homework Help Topic List
Add Reply New Topic New Poll