The Student Room Group

Matlab help?

How do I plot

h^0.5 = -1/144t + 6^0.5

on matlab between h values of 0 to 30?
Reply 1
Original post by laym
How do I plot

h^0.5 = -1/144t + 6^0.5

on matlab between h values of 0 to 30?


what have you done so far?

no point in anyone just spoon feeding you the answer lol
Reply 2
Well first you need to rearrange the equation on paper so its h = f(t).
Then you need to assign the variables h and t, so "h=..." and "t=..."
Next you type the equation in Matlab.
Then you plot the graph on Matlab using the plot() function.
Reply 3
Original post by djpailo
Well first you need to rearrange the equation on paper so its h = f(t).
Then you need to assign the variables h and t, so "h=..." and "t=..."


hmm this won't work though because you're basically assigning h with two different things at one time i.e.

at one stage you're saying h = ..... then at another stage your saying the same variable is h = ......
Reply 4
Original post by a10
hmm this won't work though because you're basically assigning h with two different things at one time i.e.

at one stage you're saying h = ..... then at another stage your saying the same variable is h = ......


Yes, your right, he'll need a for loop.

Quick Reply

Latest