part - Extraction of strings (original) (raw)
Scilab 5.3.3
- Scilab help
- Strings
- ascii
- blanks
- code2str
- convstr
- emptystr
- eval
- evstr
- grep
- isalphanum
- isascii
- isdigit
- isletter
- isnum
- justify
- length
- part
- regexp
- sci2exp
- str2code
- strcat
- strchr
- strcmp
- strcmpi
- strcspn
- strindex
- string
- strings
- stripblanks
- strncpy
- strrchr
- strrev
- strsplit
- strspn
- strstr
- strsubst
- strtod
- strtok
- tokenpos
- tokens
- tree2code
Please note that the recommended version of Scilab is 2026.0.1. This page might be outdated.
See the recommended documentation of this function
Scilab help >> Strings > part
Calling Sequence
[strings_out] = part(strings_in, v)
Arguments
strings_in, strings_out
Matrix of character strings.
v
Integer row vector.
Description
Let s[k] stands for the k character of string s ( or the white space character ifk >length(s)).
part returns strings_out, a matrix of character strings, such that strings_out(i,j) is the string "s[v(1)]...s[v(n)]" (s=strings_in(i,j) ).
Examples
part("How to use ""part"" ?",8:11)
c = part(['a','abc','abcd'],2:4)
c = part(['abcdefg','hijklmn','opqrstu'],[1,4:7]);
c = part(['abcdefg','hijklmn','opqrstu'],[4,1:7,4]);
c=part(['a','abc','abcd'],[1,1,2])
part(['a','abc','abcd'],[1])
part(['a','abc','abcd'],[1,1])
part(['a','abc','abcd'],[1,1,2])