a1= input('Enter Value in Kohms for R = ');a2= input('Enter Value in Micro Farads for C = ');R= a1*1000;C= a2*10^-6;FC= 1/(2*3.14*R*C);x = 10 : 100 : 1000000;yx = 1/(sqrt(1+(x/FC)^.2));plot(x,yx)end
I tried to use this code in order to graph a high pass circuit, but im getting an error. (One argument must be a square matrix and the other must be a scalar. Use POWER (.^) for elementwise power.)
One argument must be a square matrix and the other must be a scalar. Use POWER (.^) for elementwise power.Error in untitled2 (line 10)yx = 1/(sqrt(1+(x/FC)^2));
Best Answer