Community Profile

photo

Ariit Sengupta


Last seen: más de 2 años hace Con actividad desde 2021

Followers: 0   Following: 0

Estadísticas

  • Thankful Level 1

Ver insignias

Feeds

Ver por

Pregunta


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); %...

más de 2 años hace | 1 respuesta | 0

1

respuesta