Recent content by tinglin

  1. T

    MATLAB Matlab Help -- code to randomly select a file and a sentence in that file

    clc for ii=1:1:3 % start looping rand_id= rand(1,1) *3; % Randomly generte a number between 1 to 3.if (rand_id<1) rand_id=1; % 0 is ommitted. else rand_id=floor(rand_id); end % rand_id will be used to open a previously saved file randomly. if (rand_id==1)...
Back
Top