what does 'b' denote in this code.please tell me I am cofused with it?

1 view (last 30 days)
[y,Fs]=audioread('alarm456.wav');
file_read=resample(y,1,44100);
byte_size_of_sampled_signal=getByteSize(file_read);
file_open=fopen('file_read','r');
a=roundn(file_read,-3);
b=zeros(1,2*length(a));
where'a' is a sampled signal.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 16 Jul 2015
Edited: Azzi Abdelmalek on 16 Jul 2015
Just run this, you will understand
b=zeros(4,3)
or
a=[2 1 3]
n=length(a)
b=zeros(1,n)
  9 Comments
Walter Roberson
Walter Roberson on 16 Jul 2015
When you wrote that line of code, what did you intend the line to mean?
To answer your earlier question: no, "b" has nothing to do with byte size.

Sign in to comment.

More Answers (0)

Categories

Find more on Audio I/O and Waveform Generation in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!