I want to making a vactor.
The value of the vector is {-L, -L+1, ..., 0,... L}
I used randperm but this fuction only make {1,2,...,L}

1 Kommentar

Jan
Jan am 24 Apr. 2017
Bearbeitet: Jan am 24 Apr. 2017
Please post the code and the wanted output. Do the curly braces mean, that you work with cell arrays?

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Jan
Jan am 24 Apr. 2017

1 Stimme

Perhaps:
L = 14;
V = -L:L;
or
V = -L:L;
V = V(randperm(numel(V));

Weitere Antworten (0)

Kategorien

Mehr zu 線形代数 finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 24 Apr. 2017

Beantwortet:

Jan
am 24 Apr. 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!