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
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
Related matlab Questions & Solutions
Browse All →
Explore similar technical troubleshooting questions and verified MATLAB solutions:
Ready-to-Run MATLAB & Simulink Projects
Browse All Projects →