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

조회 수: 2 (최근 30일)
jaah navi
jaah navi 2018년 9월 4일
댓글: Walter Roberson 2018년 9월 5일
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.

채택된 답변

Ji Hoon Jeong
Ji Hoon Jeong 2018년 9월 4일
for i = [4, 12, 24, 36]
feval(symengine,'combinat::bell',i);
end
Is this what you looking for?
  댓글 수: 8
jaah navi
jaah navi 2018년 9월 5일
편집: Walter Roberson 2018년 9월 5일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MuPAD에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by