Filter löschen
Filter löschen

Could anyone help me to solve the issue in the command line

1 Ansicht (letzte 30 Tage)
feval(symengine, 'combinat::bell', 4) I can run the command line with respect to 4.Could anyone help how to run the same command with respect to different numbers 12,24,36 instead of 4 in such a way the command needs to take the numbers in order.

Akzeptierte Antwort

Ji Hoon Jeong
Ji Hoon Jeong am 4 Sep. 2018
for i = [4, 12, 24, 36]
feval(symengine,'combinat::bell',i);
end
Is this what you looking for?
  8 Kommentare
jaah navi
jaah navi am 5 Sep. 2018
Bearbeitet: Walter Roberson am 5 Sep. 2018
For the code
temp = arrayfun(@(i) feval(symengine, 'combinat::bell', i), [4 5 6], 'uniform', 0);
output = vertcat(temp{:});
I am getting the result as output =
15
52
203.
Could you please help me how to get what are the partitions present in those outputs 15,52,203 with respect to their corresponding numbers.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MuPAD 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