A way to get a function from the user

  • Thread starter Thread starter shahab
  • Start date Start date
  • Tags Tags
    Function
AI Thread Summary
To obtain user input for a function and numerical data in MATLAB, one effective approach is to use the `inputdlg` function, which creates a dialog box for user input. This allows users to enter a mathematical function as a string and numerical values. To facilitate division or other operations, the input can be processed using `str2func` to convert the string into a function handle. Additionally, users can implement error handling to manage invalid inputs. This method provides a straightforward way to interactively gather data from users in MATLAB.
shahab
Messages
1
Reaction score
0
I'm a little bit new to MATLAB and i really need a way to get a function from the user?
and also i need a way to get another data too( just numbers) in a some kind of dialog box with the ability of dividing them.
 
Technology news on Phys.org
what's your meaning?

shahab said:
I'm a little bit new to MATLAB and i really need a way to get a function from the user?
and also i need a way to get another data too( just numbers) in a some kind of dialog box with the ability of dividing them.

I can't understand.:confused:
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.

Similar threads

Back
Top