How do I get these matrix dimensions to match using linspace?
Afficher commentaires plus anciens
I am trying to write an audio algorithm to ramp up the amplitude of a .wav file but I am having problems getting getting the matrix dimensions to match in this line:
processed_waveform = input_waveform.*linspace(0, 1, length(input_waveform));
The error reads as follows:
Error using .*
Matrix dimensions must agree.
Error in Ex_1D (line 41)
processed_waveform = input_waveform.*linspace(0, 1, length(input_waveform));
I have tried using size() in place of length() but I still get the same issue. Any ideas? Thanks
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Audio I/O and Waveform Generation dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!