summation without using any loop algorithm
Mostrar comentarios más antiguos
Hello,
I am trying to implement the summation for a square wave without the use of loops. I have the following code:

sona = sin((2*k - 1)'*t)./(2*k - 1);
but keep getting the error: "Error using * Inner matrix dimensions must agree"
Can you please explain what the problem is and how I can fix this error?
Thanks, monkey_matlab
2 comentarios
Geoff Hayes
el 24 de Mayo de 2015
monkey_matlab - how have you defined k and t?
monkey_matlab
el 24 de Mayo de 2015
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!