# IND2SUB4UP Subscripts from linear index for upper triangular matrix (only elements above diagonal) (Scripts) 1.0

Average Rating
User Rating:
Visitors Rating:
My rating:

See full specifications

## IND2SUB4UP Subscripts from linear index for upper triangular matrix (only elements above diagonal) (Scripts) Publisher's description

### [I, J] = IND2SUB4UP(IND) returns vectors I and J containing

[I, J] = IND2SUB4UP(IND) returns vectors I and J containing equivalent row and column subscripts corresponding to the index vector IND.

Let ind be a vector of indexes for entries of some upper triangular matrix. The entries are selected vertically so that:

ind = 1 is associated to entry (1, 2)
ind = 2 is associated to entry (1, 3)
ind = 3 is associated to entry (2, 3)
ind = 4 is associated to entry (1, 4)
...
ind = N * (N - 1) / 2 is associated to entry (N - 1, N)

***********************************************************************

EXAMPLE

If
A = rand(10);
and
b = A(find(triu(A, 1)));
then, given indices
IND = [1:45];
for vector b, these are equivalent to subscripts
[I, J] = ind2sub4up(IND);
for matrix A. In fact:
all(A(sub2ind(size(A), I, J)) == b(IND))

ans =
1

This is obtained without even knowing about size(A)

***********************************************************************

#### System Requirements:

MATLAB 7 (R14)
Program Release Status: New Release
Program Install Support: Install and Uninstall

#### IND2SUB4UP Subscripts from linear index for upper triangular matrix (only elements above diagonal) (Scripts) Tags:

Click on a tag to find related softwares

## Most Popular

ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.