Filtering a matrix column with different cutoff

F
Francisco · Feb 2, 2021 · 1.8K views
Question
I’ ve looking for a method to filter each column of data (101X62) with specific cutoff (1X63). Please, could someone indicate me the problem? Thanks    x=data fs=60; fc=cutoff; for idx = 1:numel(x); [b,a] = butter(2, fc/(fs/2)); y = filter(b,a,x); %// output end  
Expert Answer
Profile picture of John Williams
John Williams PhD Expert
Answered Aug 25, 2026
Perhaps you meant this:
 
 
[rows, columns] = size(data);
y = zeros(size(data));
fs = 60;
for k = 1 : columns
  thisColumn = data(:, k); % Extract this one column
  fc = cutoff(k); % Extract this one cutoff value.
  % Determine filter parameters.
  [b,a] = butter(2, fc/(fs/2));
  % Do the filtering, and put result into column k of the output y
  y(:,k) = filter(b, a, thisColumn);
end
100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!