Question

Step 2: Coding You are given a vector t. We define x = di cos(it) 16 Yi = 1:1.sin(i-1) for i = 1,2,...,15,16 where multiplica
how would i do this code in MATLAB
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Script:

clc;close all;clear all;

t=linspace(0,pi,500);

figure;

for i=1:1:16

x(i,:)=(i*t.*(cos(i*t)))./16;

y(i,:)=(i*t.*(sin(i*t)))./16;

subplot(4,4,i)

plot(x(i,:),y(i,:));axis tight;grid;

end

Plots:

0.4 o o -0.1 0 0. 2 0 0.2 0.4 0 -0. 5 0 0.5 :10: o in -0.5 0 0.5 -1 0 1 1 0 1 NON o -1 0 1 -1 0 1 -2 -1 0 1 2 0 2 N No -2 0 2

Add a comment
Know the answer?
Add Answer to:
how would i do this code in MATLAB Step 2: Coding You are given a vector...
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
Active Questions
ADVERTISEMENT