Calculate SNR

Job ID: 32842153

Budget: $10 – $30 USD

Write a small Matlab script to calculate the SNR,

I dis an experiment on the optic fibre and I get the output of the signal from the optical spectrum analyser,
I am did not know how I can calculate the SNR

if you have an idea please let me know