Community Profile

photo

Ariit Sengupta


Last seen: plus de 2 ans il y a Actif depuis 2021

Followers: 0   Following: 0

Statistiques

  • Thankful Level 1

Afficher les badges

Feeds

Afficher par

Question


I am trying to ask the user for a function of x that can be used subsequently in the code. I tried to use str2func but that is throwing an error
str = input('Give a function to minimize in x: ','s') ; f = "@x" +str; %%str2func(['@x '.*str]) ; f = str2func(f); %...

plus de 2 ans il y a | 1 réponse | 0

1

réponse