Question

k =sin? b +cos 1 = c(magnitude of complex number c) _log(asin b) +ln(bsina)

a=15

b=pi

c=e^(i)(pi)

how do I write these functions as a command in MatLab?

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

MATLAB functions used and their explanations

abs: to evaluate absolute value
in matlab log means ln and log10 mean snatural logaritham log.
sqrt: sqaure root
in matlab sin(x) expression x will be taken in radians. sind(x) in this x will be taken in degrees

given expressions in matlab

first assign the given a,b and c values

a=15;

b=pi;
c=exp(i*pi);

now type following lines of code one by one

k=sin(b)^2+cos(b)^2

l=abs(c)

m=(log10(a*sin(b))+log(b*sin(a)))/sqrt(l)

output:

Command Window >a 15 b-pi C exp (i pi) >>ksin (b) 2+cos ( b) ^2 k= 1 >>1-abs (c) 1 = 1 >> m (log10 (a*sin (b))+log (b*sin (a)

Add a comment
Know the answer?
Add Answer to:
a=15 b=pi c=e^(i)(pi) how do I write these functions as a command in MatLab? k =sin?...
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