How can i correct this error "Parse error ´(´"
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ana María Hernández Salinas
el 12 de Mzo. de 2021
Comentada: Ana María Hernández Salinas
el 12 de Mzo. de 2021
Ok so basically my problem is that while i was writing some functions i got this error "Invalid expression", it says in what line is the problem, but personally i have corrected it a couple times now and still the same, this is my code: (else function)
if fB==0
y=(B/A)*x;
elseif fB==pi/2
y=sqrt(B.^2*(1-((x.^2)/A.^2)));
elseif fB==pi
y=-(B/A)*x;
else
y = A*B*x*cos(fB)-sqrt((A.^2)*B.^2*(A.^2)*sin^2(fB)+(x.^2)*cos^2(fB)-x.^2)/(A.^2);
end
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!