Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
HOW TO MAKE CATEGORICAL VARIABLE INTO A DUMMY VARIABLE
조회 수: 1 (최근 30일)
이전 댓글 표시
I have data that are 6720 rows in one column (D) with either the value "oddball" or "standard". I want ot make a new table(X) with 1 if in the same row is oddball and 0 if it is standard. I have had trouble with the if statement. for j=1:6720 if tf(j,1)=='Oddball' X3(j,1)==1 else X3(j,1)==0 end I want to presserve the sequence of the data.
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!