0
Txflier

MATLAB anybody?

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Quote

yeah 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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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 too:ph34r::ph34r:
You are not now, nor will you ever be, good enough to not die in this sport (Sparky)
My Life ROCKS!
How's yours doing?

Share this post


Link to post
Share on other sites
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. :D:D

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.

Share this post


Link to post
Share on other sites
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... :D

I'm not the rope totin charlie Bronson wanna be that's getting us fucking lost.

Share this post


Link to post
Share on other sites
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???



Actually, Matlab is very similar to fortran...i've used both.

but i don't remember much of it! that was a while ago :P
Never meddle in the affairs of dragons, for you are crunchy and taste good with ketchup!

Share this post


Link to post
Share on other sites
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! :P

Dave

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

0