why i'm getting this error?
Ältere Kommentare anzeigen
why i'm getting this error: Error using * Inner matrix dimensions must agree.
thanks
2 Kommentare
David Fletcher
am 25 Mär. 2018
Bearbeitet: David Fletcher
am 25 Mär. 2018
Sounds like you're trying to do inner matrix multiplication rather than element by element multiplication
possibly here: (a line number where the error occurred might be handy)
*an*cos*(2*pi*f0*n.'*t) + *bn*sin*(2*pi*f0*n.'*t
instead of
an.*cos(2*pi*f0*n.'*t) + bn.*sin(2*pi*f0*n.'*t
ocsse
am 25 Mär. 2018
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Logical 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!