Txflier 0 #1 December 17, 2008 Hey does anybody know MATLAB I have a problem I'm working on I can't figure out. It should be fairly simple for anybody that deals with the language as this is an introductory course.I'm not the rope totin charlie Bronson wanna be that's getting us fucking lost. Quote Share this post Link to post Share on other sites
Txflier 0 #2 December 17, 2008 anybodyI'm not the rope totin charlie Bronson wanna be that's getting us fucking lost. Quote Share this post Link to post Share on other sites
grannyinthesky 0 #3 December 17, 2008 Never heard of MAtlab. What is it and what's the problem?"safety first... and What the hell..... safety second, Too!!! " ~~jmy POPS #10490 Quote Share this post Link to post Share on other sites
Grisu 0 #4 December 17, 2008 yeah man, what your question? but google is a good helper, or the mathworks website, they have the syntax completely online. Quote Share this post Link to post Share on other sites
grannyinthesky 0 #5 December 17, 2008 If this is a math question, give some details. I'm a math teacher."safety first... and What the hell..... safety second, Too!!! " ~~jmy POPS #10490 Quote Share this post Link to post Share on other sites
Txflier 0 #6 December 17, 2008 Quoteyeah man, what your question? but google is a good helper, or the mathworks website, they have the syntax completely online. Quote I'll scan the question I am somewhat familiar with the syntax but don't really get what the question is getting at my teacher said I should use mesh plot to do the problem. But this is out of chapter 2 and I don't see mesh plot till chapter 7. So it seems it should be easier than he is trying to make it for me..I'm not the rope totin charlie Bronson wanna be that's getting us fucking lost. Quote Share this post Link to post Share on other sites
popsjumper 2 #7 December 17, 2008 I can help with formula translating but the OP's young, has no need for it and probably has no idea what I'm talking about anyway. You old farts may remember FORTRAN. Guess what? If you can believe it, it's still being used today!My reality and yours are quite different. I think we're all Bozos on this bus. Falcon5232, SCS8170, SCSA353, POPS9398, DS239 Quote Share this post Link to post Share on other sites
grannyinthesky 0 #8 December 17, 2008 QuoteYou old farts may remember FORTRAN. Guess what? If you can believe it, it's still being used today! Yep, I remember it. It's sitill being used???"safety first... and What the hell..... safety second, Too!!! " ~~jmy POPS #10490 Quote Share this post Link to post Share on other sites
Squeak 17 #9 December 17, 2008 Quote If this is a math question, give some details. I'm a math teacher. I'm friends with a Maths teacher can i help tooYou are not now, nor will you ever be, good enough to not die in this sport (Sparky) My Life ROCKS! How's yours doing? Quote Share this post Link to post Share on other sites
Txflier 0 #10 December 17, 2008 Quote Quote You old farts may remember FORTRAN. Guess what? If you can believe it, it's still being used today! Yep, I remember it. It's sitill being used??? Quote Heres my box of punch cards I'll come back in 2 days after you have run them through the machine hopefully I didn't make any mistakes or I'll spend the next week trying to figure out which punch I missed. Matlab is based on C language and is used to compute Mathmatical equations for engineering purposes. When you have large amounts of data to compute. At least that is what I know of it so far. I'm sure there are many uses for it. Well here is the problem 2.16 upper right hand corner. I'll also post the code of what I have so far. Thanks Oh I have to rescan it, it didn't like my pdf file size. I'm not the rope totin charlie Bronson wanna be that's getting us fucking lost. Quote Share this post Link to post Share on other sites
Txflier 0 #11 December 17, 2008 Quote I can help with formula translating but the OP's young, has no need for it and probably has no idea what I'm talking about anyway. Quote and hey pops how do you know how old I am... I'm pretty sure it's not on my profile... but I could be wrong I can't remember things very well nowadays. I remember when I had to walk uphill both ways to school in the snow... I'm not the rope totin charlie Bronson wanna be that's getting us fucking lost. Quote Share this post Link to post Share on other sites
BikerBabe 0 #12 December 17, 2008 QuoteQuoteYou old farts may remember FORTRAN. Guess what? If you can believe it, it's still being used today! Yep, I remember it. It's sitill being used??? Actually, Matlab is very similar to fortran...i've used both. but i don't remember much of it! that was a while ago :PNever meddle in the affairs of dragons, for you are crunchy and taste good with ketchup! Quote Share this post Link to post Share on other sites
pilotdave 0 #13 December 17, 2008 Quote Actually, Matlab is very similar to fortran...i've used both. Matlab is much simpler than fortran though. I used matlab a lot in college (though I can't remember any of it) and took one class where I was supposed to learn fortran. Luckily the prof let us use matlab instead if we wanted. So much easier to program. I still have folders full of .m files here... can't believe I used to understand what these did. syms s t Y g = ['Heaviside(t - pi) + Heaviside(t - 2*pi)*(-1)']; eqn = ['D(D(y))(t) + 2*D(y)(t) + 2*y(t) = ' g]; lteqn = laplace(eqn, t, s); neweqn = subs(lteqn, {'laplace(y(t),t,s)','y(0)', 'D(y)(0)'},{Y,0,1}); ytrans = solve(neweqn, Y); y = ilaplace(ytrans,s,t) f = inline(vectorize(y), 't'); tvals = 0:.1:15; hold on plot(tvals,f(tvals)) t2 = pi:.01:2*pi; plot (t2, 1) t3 = 0:.01:pi; plot(t3,0) t4 = 2*pi:.01:15; plot(t4,0) Looks complicated! Dave Quote Share this post Link to post Share on other sites
gainer 0 #14 December 17, 2008 clc; g = 9.81; thetao = 10; x = 1; vo = 1; yo = 0; y = tan(thetao)*x - g/(2*vo^2*(cos(thetao))^2)*x^2 + yo Here is the code of the problem you presented I think, you will have to figure out the array, it is basically just x(witha anumbner) and y(withanumber), a for loop and make sure your numbers match Quote Share this post Link to post Share on other sites