mumps-demo/02-functions/Extract.m

4 lines
100 B
Mathematica

s string="Hello world!"
w "Original string: ",string,!
w "Substring: ",$extract(string,1,5),!