please explainn this and guide me to develope the code

N
Nicholas · Mar 2, 2021 · 2K views
Question
[P,F] = spectrum(SSSS,128,0,hanning(128),1/15); is the old version of matlabs solution to find the spectrum of the  signal named 'SSSS'. can any one explain this ?? what is the equivalent of above spectrum, that compatible to the latest version of MATLAB ?
Expert Answer
Profile picture of John Michell
John Michell PhD Expert
Answered Nov 20, 2025
You can do the following
 
 
      [Pxx,F] = pwelch(SSSS,hanning(128),0,128,1/15);
The syntax you are using above is:
 
 
   [P,F] = SPECTRUM(X,NFFT,NOVERLAP,WINDOW,Fs)
to get the equivalent in an updated version of MATLAB use the corresponding syntax for pwelch.m

 

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!