Mat
Mat

Reputation: 23

matlab function parser on gui

I need to do a parser on my gui in matlab in which you can type your own function formula that will be used for computations. I came up with to make function that gets function from edit box as a string and saves it to m-file as a function. But any further calling changed file do not bring expected results if the first form of function were stored in memory. Do you have any other ideas to solve it?

Upvotes: 0

Views: 61

Answers (1)

Florian Brucker
Florian Brucker

Reputation: 10355

Instead of writing the code to an m-file, take a look at the eval function.

Upvotes: 1

Related Questions