input a function as a user input
Show older comments
Here is what i need to do. I have to input the interval, number of interpolation points, and 4 functions. I need to then create chebyshev points, and iterpolate the functions. What I need help with is how do I create a function from a user input so I can evaluate at the two different intervals.
example on function is exp(-x) f = input('enter function: ') this is what i have, but what i want is to make this a fucntion
f = inline@(input('enter function: ')) but this wont work. what am i doing wrong?
Answers (1)
Categories
Find more on Function Creation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!