Why does my sin graph look like a triangle?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
4 comentarios
Cris LaPierre
el 11 de Mayo de 2023
You can obviously post pictures, but then you are asking the community to rewrite yout code from a picture. It's much simpler for us if you just copy/paste your code instead.
Respuestas (1)
Cris LaPierre
el 10 de Mayo de 2023
Your sin wave is plotted just fine. However, it looks like a straight line because the magnitude of your second plot (in red) is so much larger (1 vs 5e5)
3 comentarios
Cris LaPierre
el 11 de Mayo de 2023
Editada: Cris LaPierre
el 11 de Mayo de 2023
BTW, the derivative of sin is cosine. So the correct plot should show a sin and cosine wave of the same frequency and amplitude.
Ver también
Categorías
Más información sobre Two y-axis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!