summation without using any loop algorithm
Mostra commenti meno recenti
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 Commenti
Geoff Hayes
il 24 Mag 2015
monkey_matlab - how have you defined k and t?
monkey_matlab
il 24 Mag 2015
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!