Question: Using MATLAB i need this line of code to be fixed here a example of what i want Do a written correction entire code isnt
PUBUSH LE VERS ONS VIEW Go lo - Run Section lew Save Find Files Q Find Breakpoints Run and Run Advance Advance FILE NAVIGATE PREAKPOINTS EDIT RUN OI MATLAB Drive > Untited m x roll- 230; 8. arrayrand-[]; 10 arrayrandnot-[): trainingdata-[): starttrainingdata-[]: k-e; 12 13 24 15 6-D for k-1:roll .7. numbroll - ceil(318*rand); Xdisp(numbroll); X put a random number to generate 260 training data arrayrand (k)-numbroll;% adds the rows in which the dice selected Xchecks to see if the number in contain in arrayrand and if it is displays the matched number. if contains(arrayrand,numbroll) disp("matches"+numbroll) else starttrainingdata T(numbroll,1:7); Tnew-[T;starttrainingdata):Xsaves the selected rows from T to make the training data Xdisp(k); k-k+1; end tatnainieod Xdisp(starttrainingdata) Xtrainingdata(i)-starttrainingdata; % need to make it so that them rows from T is saved into a * seperatetable IMAND WINDOW or using contains t argument must be a string array, character vector, or cell array of character vectors. r in Untitled (line 21) if contains (arrayrand, numbroll) D Type here to search
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
