summation without using any loop algorithm
Ältere Kommentare anzeigen
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 Kommentare
Geoff Hayes
am 24 Mai 2015
monkey_matlab - how have you defined k and t?
monkey_matlab
am 24 Mai 2015
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!