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 comentarios

Rik
Rik el 29 de En. de 2018
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 el 29 de En. de 2018
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 el 29 de En. de 2018
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 el 5 de Feb. de 2018
(Answers Dev) Restored edit

Iniciar sesión para comentar.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 28 de En. de 2018

3 votos

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.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 28 de En. de 2018

Comentada:

el 5 de Feb. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by