MATLAB

MACAQUE

Active member
Any NSers know how to use MATLAB? I'm taking a course on it this quarter and have a few questions about it. I can't meet with the prof/TAs until later this week so that's why I'm asking here
 
I, personally, have not taken any classes yet that have included MATLAB. However, I have some friends in engineering that are a little ahead of me that have taken classes that utilized MATLAB. I can relay the questions you have to them if you'd like me to get some answers for you.
 
Basically I have to write a code for some matrix multiplication. The code is easy, but I have to make it save my answers and then upload the code to a website and the website grades it automatically. I'm having trouble getting the website to read my answers. I'll go into more detail when I'm not on mobile
 
on a general note, matlab is one badass program. idk what shit you cannot do with it.

used it for my master thesis, programmed a artifical neural network with it, with maybe 40 lines of code (most is generated by the ANN wizard). doing that from scratch with C++ or whatever is probably a bazillion lines of code.

legit program is legit.

@OP, isnt your problem more a problem with your schools webserver or what?
 
yeah it's ridiculous. We modeled a pretty complex human circulatory system with a couple hundred lines. It's insane what you can do with it.
 
mechanical engineer, I know a bit of matlab. There is a ton that can be done with that program though, and it does become pretty intuitive once you get used to it. A while ago we did signal coding and matrix operations with it, like basic multiplication. Now we use it a bit to do regression lines, and we had a few projects on modeling the motion of a piston and resultant forces/motions. My teacher showed us some of the stuff people do with it though, and it is absurd. I can't seem to find it now, but there were animations of models of elastic materials, all color coded for a specific parameter. I would hate to create it, but it was really cool to see.
 
I got it figured out. The names for the files had to be really specific for the website to be able to find them.
 
HELP deadline tomorrow and i cant fix this error :(, hate matlab the course organiser is an asshole as well

740624.png
 
ive used it a bit, found it useful mostly for PID controller theory and frequency response /bode plots /root locus of higher order systems. i hate coding stuff with a passion, and although matlab code is super easy compared to most languages i still try to avoid it. that being said, i realize how valuable a resource it is and i should probably get better at using it. i torrented the full 2013 version last year so it should still be on the pirate bay.
 
for your output arguments, you need your time and derivative matrix x[ ].

Try [t, x] = ode45(....)

where x = [x(1) x(2) x(3) etc]... i am pretty sure this output matrix must be the same size as the time matrix.

where you take a sample every second from 0-25 seconds and calculate the derivative, it would be a matrix of 25 points.
 
13243158:B-Wald said:
Looks like you don't have 4 arguments in the ode45 call. The left side of the equation has 4 variables, and you only have 3 on the right side.

13243223:yuck said:
ive used it a bit, found it useful mostly for PID controller theory and frequency response /bode plots /root locus of higher order systems. i hate coding stuff with a passion, and although matlab code is super easy compared to most languages i still try to avoid it. that being said, i realize how valuable a resource it is and i should probably get better at using it. i torrented the full 2013 version last year so it should still be on the pirate bay.

You can have functions that output more variables than there are inputs, which I'm guessing is this case.

I'm thinking what ^he said is correct
 
13243442:406 said:
for your output arguments, you need your time and derivative matrix x[ ].

Try [t, x] = ode45(....)

where x = [x(1) x(2) x(3) etc]... i am pretty sure this output matrix must be the same size as the time matrix.

where you take a sample every second from 0-25 seconds and calculate the derivative, it would be a matrix of 25 points.

this worked! thanks so much for the help guys
 
yep, i used it a lot at my old job. if you have a problem or question, what you wanna do is walk down the hall to kathy's office and say kathy im a retard and can't figure out this move in MATLAB can you come save my ass again? thanks

hope that helps man good luck
 
Back
Top