Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
block.m
Package: kalmanmatalab.rar [view]
Upload User: mozhenmi
Upload Date: 2008-02-18
Package Size: 13k
Code Size: 0k
Category:
Other windows programs
Development Platform:
Matlab
- function sub = block(blocks, block_sizes)
- % BLOCK Return a vector of subscripts corresponding to the specified blocks.
- % sub = block(blocks, block_sizes)
- %
- % e.g., block([2 5], [2 1 2 1 2]) = [3 7 8].
- blocks = blocks(:)';
- block_sizes = block_sizes(:)';
- skip = [0 cumsum(block_sizes)];
- start = skip(blocks)+1;
- fin = start + block_sizes(blocks) - 1;
- sub = [];
- for j=1:length(blocks)
- sub = [sub start(j):fin(j)];
- end