i(t)=6cos((2*pi*t)-15)
And
v(t)=12sin((2*pi*t)-45))
plot on same graph, should include approx 2 full cycles.

댓글 수: 5

Rik
Rik 2018년 1월 29일
I agree with that person that claimed to be your classmate. You shouldn't use this forum as your means of getting through your class. You won't learn anything and in the end you will have a worthless diploma because you can't do the stuff your diploma says you can. It is not a problem to post homework here: you can find guidelines for posting homework on this forum here. Doing a crash course on Matlab and trying to understand how the program works is much more valuable in the long run.
(Also, yes, many teachers are aware of this forum and will sometimes check if a solution that is handed in comes from this forum. Plagiarism rules still apply.)
Matthew Inman
Matthew Inman 2018년 1월 29일
I don't know how many teachers would actually check the forums or chegg for that matter for every homework question they ask. But I would imagine the person teaching it would say something like ... It's the first assignment and we will go over it again in class today to see what sort of questions you may have.
Rik
Rik 2018년 1월 29일
13 minutes after your post here, he actually edited his question here to change it to essentially this question. Even if teachers don't check (which they might indeed not do for easier questions), the rest of my argument still stands.
Rena Berman
Rena Berman 2018년 2월 5일
(Answers Dev) Restored edit

댓글을 달려면 로그인하십시오.

 채택된 답변

Walter Roberson
Walter Roberson 2018년 1월 28일

3 개 추천

There are three ways:
1)
plot(t, i(t))
hold on
plot(t, v(t))
hold off
2)
plot(t, i(t), t, v(t))
3)
plot(t, [i(t(:)), v(t(:))])
Passing t(:) to the functions should cause them to return column vectors. You then use [,] to put the two column vectors into an n x 2 matrix. MATLAB will treat each column as an independent line to be plotted.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

태그

질문:

2018년 1월 28일

댓글:

2018년 2월 5일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by