what does 'b' denote in this code.please tell me I am cofused with it?
1 view (last 30 days)
Show older comments
PRATIBHA WARKADE
on 16 Jul 2015
Edited: Rena Berman
on 24 Jan 2017
[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.
1 Comment
Rena Berman
on 24 Jan 2017
Edited: Rena Berman
on 24 Jan 2017
(Answers dev) Restored deleted comments.
Accepted Answer
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
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.
More Answers (0)
See Also
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!