MATLAB Answers

Create 200 Variables using columns of data for use in Random Forest

1 view (last 30 days)
Jon Dewland
Jon Dewland on 26 Nov 2020
Commented: Jon Dewland on 28 Nov 2020
Happy Thanksgiving!
I was wondering if anyone could help me create 200 variables based off of a Sheet of 285 columns and 1000 rows that could be used in random forest. Instead of typing the variables out one by one is there a way to automatically assign variables that could be used and plugged into the numLevels function attached?

  2 Comments

Jon Dewland
Jon Dewland on 28 Nov 2020
Latest update, unsure how to store the data after each for loop, tried multiple for loops but the most common error usually comes from below, where it is saying the left and right sides have a different number of elements. Am I going about this the wrong way?

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!