How to create a multi-dimensional cell?
显示 更早的评论
I am working with a toolbox, of which I can't access the source code (.p file). For solving a multi dimensional problem, I need to create a cell, telling that all my d-variables (d=200 for instance), follow a normal distribution. For d=2, creating this cell is: {'normpdf(0,1)', 'normpdf(0,1)'} Is there an easy way to create this cell for d=200? Thank you for your help!
采纳的回答
更多回答(1 个)
Stalin Samuel
2016-7-16
d=200;
for itr=1:d
result{itr}='normpdf(0,1)';
end
类别
在 帮助中心 和 File Exchange 中查找有关 Hypothesis Tests 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!