dimanche 19 février 2017

MATLAB - Generate Random Vectors

I have 2 vectors which I want to generate randomly. The 2 vectors are input and target vector below that will be passed as parameters to the perceptron algorithm.

input = [-1 -1 1 1; -1 1 1 -1]; 
target =[1 0 0 1];

The vectors will be between -1 and 1. I tried using the solution from How to generate random vector from specific user defined range? however was not able to get this to work.




Aucun commentaire:

Enregistrer un commentaire