About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • Last update: 5 years ago
  • Total downloads: 63
  • Operating system: Linux, Mac OS X, Win All, BSD, Solaris
  • Publisher: Brian Emery
See full specifications

scripts default iconSubscripted Reference for Structures (Scripts) Publisher's description

Applies indexing to the fields in a structure in much the same way as subsref.m

Applies indexing to the fields in a structure in much the same way as subsref.m works with matricies, vectors, etc. The indexing is only applied to fields with n columns (or rows).

Example call: S = subsref_struct(S,i,n,rc)

Applies the indexing given in i, to the fields in S that have the
matching number of columns (n). Given a 4th input will apply the indexing to the rows (1) or columns (2), defaults to columns.

Create a structure with mixed fields, array and structure
d.lon = ones(5,1)*[1:10];
d.lat = ones(5,1)*[1:10];
d.time = 1:10;
d.strct = d;

Change the column indexing
S = subsref_struct(d,2:5,size(d.lon,2),2)

Change the row indexing
S = subsref_struct(d,1:2,size(d.lon,1),1)

System Requirements:

MATLAB 7.5 (R2007b)
Program Release Status: New Release
Program Install Support: Install and Uninstall

Subscripted Reference for Structures (Scripts) Tags:

Click on a tag to find related softwares

Is Subscripted Reference for Structures (Scripts) your software?

Manage your software

Most Popular

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