I wanna implement this function, but it says there is an syntax error..
Afficher commentaires plus anciens
function y=myfunc(x)
y=(x<0).*(2*exp(x)+(0<=x&x<1).*2+(1<=x&x<3).*(x^2-4*x+5)+(3<=x).*(1+cos(x-3));
endfunction
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Configure and View Diagnostics dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
