Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Another issue:How to transform a vector of randomly generated numbers in the interval [-1 1],so as to sum up to 1??

Subject: Another issue:How to transform a vector of randomly generated numbers in the interval [-1 1],so as to sum up to 1??

From: Vassilios Vassiliadis

Date: 10 Nov, 2010 09:32:08

Message: 1 of 1

Hello,
another issue which I've not managed to tackle is the following:
Assuming that I generate a random vector of numbers restricted (only!!!) in the interval
[-1 1].Afterwards,as a second step,I'd like to properly 'transform' (is a sense) this vector in order to sum up to 1.How can I achieve this??

Thanx in advance...
Vassilios...

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us