Get a set of arrays as input from user in matlab function

9 views (last 30 days)
Hello! Every one
i want to write a function which gets array input with the help of statements:
Function be like
function Out = my_fun(P1,P2)
where P1 and P2 arrays two set of arrays..
The output be like
Insert P1 :
Insert P2 :
  1 Comment
madhan ravi
madhan ravi on 14 Feb 2019
You forgot to mention how the output should look like , illustration would prevent the delay in answering your question.

Sign in to comment.

Answers (1)

KSSV
KSSV on 14 Feb 2019
Read about input
prompt = 'Enter Array:';
x = input(prompt) ;

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!