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

10 Ansichten (letzte 30 Tage)
Mazhar Ali
Mazhar Ali am 14 Feb. 2019
Kommentiert: madhan ravi am 14 Feb. 2019
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 Kommentar
madhan ravi
madhan ravi am 14 Feb. 2019
You forgot to mention how the output should look like , illustration would prevent the delay in answering your question.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

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

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by