Clear Filters
Clear Filters

Change variables for regression to use it as dummies

1 view (last 30 days)
I would like to change the datas to 0 and 1.
Anything between 0 to 30% will be 0 and anything over 30 should be 1.
Does someone has a script to change it ?
Thats my code to change it into a vertical order (changed the name from Board Gender Diversity to mBoardGenDiv):
mBoardGenDiv = mBoardGenDiv(:,[1:end]);
mBoardGenDiv = mBoardGenDiv(:);
Thanks in advance!

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!