McMaster Engineering
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Matlab assignment 1

+2
Admin
applebyjl
6 posters

Go down

Matlab assignment 1 Empty Matlab assignment 1

Post  applebyjl Wed Sep 23, 2009 11:50 am

Um..

Does anyone got number one?

I don't get the 1st question from number 1.

I got second one from question #1 tho..

can somebody help meee Very Happy

applebyjl

Posts : 2
Join date : 2009-09-23

Back to top Go down

Matlab assignment 1 Empty Re: Matlab assignment 1

Post  applebyjl Wed Sep 23, 2009 12:31 pm

Actually i did that..that one is easy.
I'm having trouble with the one before that.

applebyjl

Posts : 2
Join date : 2009-09-23

Back to top Go down

Matlab assignment 1 Empty Re: Matlab assignment 1

Post  SuperSnake Wed Sep 23, 2009 12:38 pm

ya the backslash command isn't working for me. The inverse does work but don't think thats what he wants

SuperSnake

Posts : 2
Join date : 2009-09-23

Back to top Go down

Matlab assignment 1 Empty Re: Matlab assignment 1

Post  Admin Wed Sep 23, 2009 12:51 pm

SuperSnake wrote:ya the backslash command isn't working for me. The inverse does work but don't think thats what he wants

What are you getting for the backslash cmd? If its in decimals try the round() cmd.

Admin
Admin

Posts : 7
Join date : 2009-09-23

https://maceng.board-directory.net

Back to top Go down

Matlab assignment 1 Empty Re: Matlab assignment 1

Post  SuperSnake Wed Sep 23, 2009 1:12 pm

Ya so I define the matrices A and B like he has in the assignment then do B / A and it gives me an error. ??? Error using ==> mrdivide
Matrix dimensions must agree.

SuperSnake

Posts : 2
Join date : 2009-09-23

Back to top Go down

Matlab assignment 1 Empty Re: Matlab assignment 1

Post  Admin Wed Sep 23, 2009 1:35 pm

Take a look at the link I posted above.

"If A is a square matrix, A\B is roughly the same as inv(A)*B, except it is computed in a different way. If A is an n-by-n matrix and B is a column vector with n elements, or a matrix with several such columns, then X = A\B is the solution to the equation AX = B (see Algorithm for details). A warning message is displayed if A is badly scaled or nearly singular."

So its not B/A like I initially thought aswell but rather the syntax is A\B for some weird reason haha.

Admin
Admin

Posts : 7
Join date : 2009-09-23

https://maceng.board-directory.net

Back to top Go down

Matlab assignment 1 Empty Re: Matlab assignment 1

Post  GregZ Wed Sep 23, 2009 10:20 pm

Can anyone help me with number 2? I don't understand how to get the sum command working

GregZ

Posts : 1
Join date : 2009-09-23

Back to top Go down

Matlab assignment 1 Empty Re: Matlab assignment 1

Post  bobby66 Wed Sep 23, 2009 11:51 pm

Yes, its A\B, theres a mistake on the tutorial. You should get 5 0 3.

bobby66

Posts : 1
Join date : 2009-09-23

Back to top Go down

Matlab assignment 1 Empty Missing USB key

Post  RHCP Thu Sep 24, 2009 9:38 am

Hey all, sorry for being a little off topic, but I was in the lab today (BSB 244) doing Matlab and I am pretty sure that I forgot my USB key there. I'm pretty sure someone's stolen it by now since I just checked the room a few minutes ago and it's not there. In the off chance that someone would happen to have seen it email me at pjmotz2@hotmail.com

Thanks

RHCP

Posts : 4
Join date : 2009-09-24

Back to top Go down

Matlab assignment 1 Empty Re: Matlab assignment 1

Post  RHCP Thu Sep 24, 2009 9:44 am

RHCP wrote:Hey all, sorry for being a little off topic, but I was in the lab today (BSB 244) doing Matlab and I am pretty sure that I forgot my USB key there. I'm pretty sure someone's stolen it by now since I just checked the room a few minutes ago and it's not there. In the off chance that someone would happen to have seen it email me at pjmotz2@hotmail.com

Thanks

Wow my brain doesn't work at all today. I should have mentioned that it's a black and white 8 GB Kingston USB key.

RHCP

Posts : 4
Join date : 2009-09-24

Back to top Go down

Matlab assignment 1 Empty Re: Matlab assignment 1

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum