ArBa

dataCreate.m

Oct 26th, 2020
812
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function [data] = dataCreate(params, length)
  2.     data = zeros(length, params);
  3.     for i=1:length
  4.         x = zeros(1, params);
  5.         for j=1:params
  6.             x(j) = randi(100);
  7.         end
  8.         data(i, :) = x;
  9.     end
  10. end
RAW Paste Data