How to build a for-loop for 3rd dimensional noise realizations
Show older comments
I am currently working on some research and was given a signal set of 1000x320x10 that I need to filter. The 3rd dimension is the number of noise realizations present. For a prior signal set, I used a for-loop to cycle through the data, line-by-line, and save the newly filtered data for later testing. I now need to include a seperate for-loop to also go through the 10 noise realization, but I am unsure how to properly make it go through the consecutive loops of that 3rd dimension. Do i just nest another for loop in there somewhere after filtering the original 1000 rows? Or do I need to filter them each row by row (1x320x1, 1x320x2, 1x320x3,...,1x320x10)?
Thank you!
clc;
clear;
close all;
load Wifi_Data_9dB_L5;
Fs = 20e6; %Establishing Variables
Fsamp = 20e6;
BW = 7.7e6;
Rp = 0.01;
Order = 4;
ImpPlot = 0;
PrntPlots = 0;
Rp = 0.01;
%%--------------------------------------------------------------------------
Tsamp = 1/Fsamp; %Filter variables
SNR = 9;
NumMC = 10;
FiltType ='Cheby';
N = 6;
for i = 1:1000
New_Sig = SigPlusNoise(i,:); %Drawing signal from given matrix
SigIn = New_Sig; %Establihing input signal
cheby = LPF_ChebyI_V1(SigIn,Fsamp,Order,BW,Rp,ImpPlot,PrntPlots); %Filter function
New_data(i,:) = (cheby); %Making new matrix
end
save('New_data') %Saving filtered signal in file New_Data
1 Comment
Jordan Willis
on 1 Feb 2021
Accepted Answer
More Answers (0)
Categories
Find more on Digital Filter Analysis 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!