Signal Processing: Applying 1/f presentation to PSD figure

Hi everyone,
Would someone please be able to help me with this pickle? I was told to regenerate this PSD figure using a 1/f presentation:
I've looked everywhere and even bought a few online courses, but the closest thing I've found is how to generate 1/f noise. As a noob, I tried to apply some of those steps to the PSD script but with no success. Firstly, is this goal possible and if so could someone kindly show me how? I'm sorry if this is such a basic q. but I haven't seen other questions on this. Thank you in advance.

5 Comments

hello
is this a homework - what was the exact wording of the exercise ?
1/f noise to be generated and then PSD ?
FYI, the graph is not a pure 1/f noise PSD otherwise the curve should be negtive slope all the time
Hi Mathieu,
Thank you for asking, no it's volunteering work.
I was initially told to:
  1. Use PSD code and generate a figure which shows the log10 base (or 1/f way) of the power spectral density for each group; each a different colour also the error bars will be shown on the same graph
The supervisor later specified I should "do a 1/f presentation" after I sent in the above graph.
The current graph only contains the power spectral density output of EEG signals from 2 different rodent groups (knock-out (KO) and control). Also, even though the x and y-axis aren't displaying log10 - I did plot the figure with the 'loglog' function so I think that it should be log10 base and that the only thing missing is for me to apply this 1/f presentation?
Thanks again for helping me with this!
Hello Anna
FYI the graph you posted is linear both in x and y axes - not loglog
that sound to be the single issue to be corrected in your code
Hi Mathieu,
Oh I feel so silly now, I did use loglog but I'll figure out why it's not displaying as such. Thank you so much for letting me know where the issue was lying! :)
hello
glad you found the bug ... have a good day

Sign in to comment.

Answers (1)

Hi Anna,
Refer https://in.mathworks.com/help/matlab/ref/loglog.html. It plots for x- and y-coordinates using a base 10 logarithmic scale on the x-axis and the y-axis.
Hope this helps.

Asked:

on 29 Mar 2021

Answered:

on 14 Apr 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!