Question

yes you will need matlab software

Can someone please help me. attached is the exercise i am doing in matlab. also attached is the exercise that i am suppose to be doing.also attached is part a of my code and part b. also attached is an error code i am getting. can someone please help me with this. thanks. explain in detail what i am doing wrong and what i need to do to fix it.

you use enogn polnts so that the clrves are nice and Smooth. () ter the function ) a nlise or omsfaction(eve page 6. (a) Enter the function f(r,y) 2+- as an y+1 Evaluate the function at1 and y 2 by entering f-1,2) in the command window. (b) Type clear f to clear the value of the function from part (a). Now write a function M-file for the function x,) file as t.m (include the M-file in your report). Evaluate the function at z =-1 and y 2 by entering f (-1,2) ?n the command window. y+ 1

0 0
Add a comment Improve this question Transcribed image text
Answer #1

I have attached two images first one is done with anonymous function and the second one using the inline function.

In anonymous function, the syntax is @(x,y) not @(x;y) that is why it is showing error. and you need to store the value of f(x,y) into another variable then only it will print the result and the last line which you have mentioned ans=-1.4630 is not required it will print the result in the command window.

In the last image, I have shown what exactly clear command do.if you define a function and then do clear (function_name) then it will clear the previously defined function and one can use the same function name to define another function. the image will show the clear view of the clear command.

Thanks!!

Add a comment
Know the answer?
Add Answer to:
yes you will need matlab software Can someone please help me. attached is the exercise i...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT