A community for students.
Here's the question you clicked on:
 0 viewing
anonymous
 one year ago
MATLAB101 help D:
I'll attached the problem below.
anonymous
 one year ago
MATLAB101 help D: I'll attached the problem below.

This Question is Closed

anonymous
 one year ago
Best ResponseYou've already chosen the best response.0I just wanted to see how this will look like. Don't show me the code (I have to figure this one out), just show me your output, so that I can have an idea.

anonymous
 one year ago
Best ResponseYou've already chosen the best response.0...a little bit of hints, maybe?

dan815
 one year ago
Best ResponseYou've already chosen the best response.1u have a 50 by 50 matrix and what are we trying do here with peaks function?

anonymous
 one year ago
Best ResponseYou've already chosen the best response.0from what I understand, i have to make the 50 by 50 matrices using the "peaks" function. What's a peak function anyway?

dan815
 one year ago
Best ResponseYou've already chosen the best response.1www.mathworks.com/help/matlab/ref/peaks.html

anonymous
 one year ago
Best ResponseYou've already chosen the best response.0Yeah I read that. I'm not sure if I should do Z=peaks(x,y) or do z=peaks(50), x=peaks(50), y=peaks(50) because it says "Use the peaks function to define X,Y,Z" not sure what this part actually means

dan815
 one year ago
Best ResponseYou've already chosen the best response.1do u hae some data set of some function i can use peaks on?

kva1992
 one year ago
Best ResponseYou've already chosen the best response.1I believe you should be using the Z=peaks(x,y)

kva1992
 one year ago
Best ResponseYou've already chosen the best response.1dont quote me but im pretty sure

anonymous
 one year ago
Best ResponseYou've already chosen the best response.0no i don't have any set of data.. if i did that, this is how it will look like:

anonymous
 one year ago
Best ResponseYou've already chosen the best response.0is it supposed to be like that? O.o

kva1992
 one year ago
Best ResponseYou've already chosen the best response.1Z = peaks(X,Y); evaluates peaks at the given X and Y (which must be the same size) and returns a matrix the same size.

kva1992
 one year ago
Best ResponseYou've already chosen the best response.1so if im not misinterpreting that your x and y are 50

dan815
 one year ago
Best ResponseYou've already chosen the best response.1x and y are both 50 by 50 matrices?

kva1992
 one year ago
Best ResponseYou've already chosen the best response.1gimme a second lol i may be mistaken

dan815
 one year ago
Best ResponseYou've already chosen the best response.1oh crapp i cant use peaks i accidentally named some other program peaks, i gotta put in that program in for peaks again

anonymous
 one year ago
Best ResponseYou've already chosen the best response.0wait i'm confused now, do i need to define x and y with some function?

dan815
 one year ago
Best ResponseYou've already chosen the best response.1can you open your peaks function code

kva1992
 one year ago
Best ResponseYou've already chosen the best response.1well if we are basing it off the definition then yes you have to define the x and y and they both must be the same value

dan815
 one year ago
Best ResponseYou've already chosen the best response.1ok nvm i just renamed the file i can use peaks again

kva1992
 one year ago
Best ResponseYou've already chosen the best response.1yup thats what it should look like from what i have knowledge of

anonymous
 one year ago
Best ResponseYou've already chosen the best response.0did you do z=peaks(50) figure mesh(Z) ?

dan815
 one year ago
Best ResponseYou've already chosen the best response.1>> [X,Y,Z]=peaks(50) >> surf(X,Y,Z)

anonymous
 one year ago
Best ResponseYou've already chosen the best response.0surf(x,y,z) isn't the x and y here represents the matrix then z will be the color of data and the surface height? okay. thank you, i think i got it now :D

dan815
 one year ago
Best ResponseYou've already chosen the best response.1[X,Y,Z] = peaks(...); returns two additional matrices, X and Y, for parametric plots, for example, surf(X,Y,Z,del2(Z)). If not given as input, the underlying matrices X and Y are [X,Y] = meshgrid(V,V)

dan815
 one year ago
Best ResponseYou've already chosen the best response.1u should mess around with it like

dan815
 one year ago
Best ResponseYou've already chosen the best response.1what happens when you put in a meshed grid 50 by 50 for peaks

anonymous
 one year ago
Best ResponseYou've already chosen the best response.0ok, i'll try that. I already get the idea, so I think I can manage it now I'll ask again if I got stuck or confused :P

anonymous
 one year ago
Best ResponseYou've already chosen the best response.0quick question, are your matrices like the list of numbers/data showing on your command window?
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.