Info
此问题已关闭。 请重新打开它进行编辑或回答。
convert xi to i
6 次查看(过去 30 天)
显示 更早的评论
Hello,
I have created a regression tree and I have printed the cut predictors which are the variables that were used in each branch.
It gives me a cell array like this: 'x2' 'x1' 'x1'
I need these to be converted into numerical values. Instead of 'x2' I need 2 or instead of 'x1' I need 1
How should I do this conversion?
Thank you
0 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!