Question

Question 2 5 points Save Answe Write the output of the following lines: p=floor([1.4 -2.3]);q=(p.372 TTT Arial 3 (12) T.EE Qi
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Output :-

-0.5

Explanation :-

p= -1

As floor to any number to round of to nearest integer less than or equal to that number

So, for p = floor([1.4-2.3]), in this answer would -1.

But, q = (p.^3)/2 ; so, .^ provides element wise power. So, for -1.^3 will result in -1. And, then result/2 will result to -0.5

So, answer is -0.5

Add a comment
Know the answer?
Add Answer to:
Question 2 5 points Save Answe Write the output of the following lines: p=floor([1.4 -2.3]);q=(p.372 TTT...
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