Error using / Matrix dimensions must agree. (tried using .* and ./)
Mostrar comentarios más antiguos
Hi,
i am getting stuck with this error
Error using / Matrix dimensions must agree.
Error in Problem_2_3 (line 98)
s=(-1/(r*2*c))+sqrt((1/(2*r.*c)).^2-(1/(l*c)))
Here is my code
%%
%(b)
r=[100:100:1000] %ohms
c=1e-06; %farads
l=0.64; %henrys
s=(-1/(r*2*c))+sqrt((1/(2*r.*c)).^2-(1/(l*c)))
First_result= -s
Second_result= +s
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Navigation Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!