Hi,(adsbygoogle = window.adsbygoogle || []).push({});

I am trying to plot the AN product sec II.C in the attached paper as:

The details of these equations are highlighted in the attached file.Code (Text):clear all

clc

s=0.5;

w=0;

d=5;

f=0:20;

NdB1=(17-30.*log10(f));

N1=10.^(NdB1./10);

NdB2=40+20*(s-0.5)+26.*log10(f)-60.*log10(f+0.03);

N2=10.^(NdB2./10);

NdB3=50+7.5*w^0.5+20.*log10(f)-40.*log10(f+0.4);

N3=10.^(NdB3./10);

NdB4=-15+20.*log10(f);

N4=10.^(NdB4./10);

N=N1+N2+N3+N4;

adB=0.11.*((f).^2./(1+(f).^2))+44.*((f).^2./(4100+(f).^2))+2.75*10^-4.*(f).^2+0.003;

a=10.^(adB./10);

A=(d^(1.5)).*a.^d;

A_N=1./(A.*N);

A_NdB=10*log10(A_N);

plot(f,A_NdB)

I appreciate if someone points to me my mistake, and the figure should be like Fig 3

Thanks

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Where is my mistake in this MATLAB code?

Loading...

Similar Threads - Where mistake MATLAB | Date |
---|---|

Mathematica Can you tell me where can i download Maple? | Jan 6, 2017 |

LaTeX Where did the sandbox go? | Apr 12, 2016 |

Where can I get a free data-collection and analysis software? | Feb 6, 2014 |

A program where I can draw a function and calculate the integral? | Jun 3, 2013 |

Mathematica Mistake? | Sep 17, 2009 |

**Physics Forums - The Fusion of Science and Community**