create a script when a input value is required, than start a function that i will write by myself in matlab

You can create a script that prompts the user to input a value, and then calls a function with that input value as an argument. Here's an example:

% Prompt the user for input
input_val = input('Please enter a value: ');

% Call your function with the input value as an argument
output_val = my_function(input_val);

% Display the output
disp(['The output of my_function for input value ', num2str(input_val), ' is ', num2str(output_val)]);
293 chars
9 lines

Replace my_function with the name of the function you want to call, and customize the prompt to ask for the specific input value you need.

related categories

gistlibby LogSnag