Error using load: Number of columns on line 2 of ASCII file must be the same as previous lines.
9 次查看(过去 30 天)
显示 更早的评论
Hello. I am trying to model a transceivers functionality and capability in MATLAB. I have recorded a signal and modulated the signal to 'send off' for fellow classmates to demodulate and discover. Of course, I am attempting to demodulate the signal first to make sure everything works. However, I am continuously running into the error code mentioned in the title when I try to load the "Modulated.wav" file. Can anyone please help me fix this issue?
% Demodulated Signal
clc
clear all;
Fc = 500; % Carrier Frequency in Hz
Fs = 12000; % Sampling Frequency in Samples/Sec
load Modulated.wav
0 个评论
采纳的回答
Steven Lord
2020-4-5
The load function is intended for use in loading a MAT-file or a regularly formatted text file. Use audioread to read in a sound file.
5 个评论
Steven Lord
2020-4-6
Okay, in that case the extension should probably be .mat or you should read it in using load with the -mat option to tell MATLAB that even though its extension is not .mat it is in fact a MAT-file.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Waveform Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!