Apr-25-2019, 01:24 PM
Hey guys,
I'm trying to plot something use np.linspace.
I wrote a function called
def snr():
and the output for example is
print(snr(0.25))=400
print(snr(0.50))=200
print(snr(0.75))=400
and now I want to plot this function
x = np.linspace(0.25 , 0.75, 1000)
ax1.plot(x, snr(x))
It tells me that my snr(x) has dimension 1. What should I change about my code?
I'm trying to plot something use np.linspace.
I wrote a function called
def snr():
and the output for example is
print(snr(0.25))=400
print(snr(0.50))=200
print(snr(0.75))=400
and now I want to plot this function
x = np.linspace(0.25 , 0.75, 1000)
ax1.plot(x, snr(x))
It tells me that my snr(x) has dimension 1. What should I change about my code?