01:198:107 Lecture 4: Vectors, Strings, Means-ends

61 views4 pages

Document Summary

2:3:16 means 2 5 8 11 14. Matlab can operate on a whole vector of numbers. A character is any single letter, digit, punctuation, symbol. Note that 1" and 1 mean different things in matlab. A character string is just a vector of characters. [ c" a" t"] is the same as cat". Variable first holds first character of a word. Strfind(str1, str2) - returns a sequence of numbers - all the indices in str1 where a copy of str2 starts. A([3 1 2])=> [a(3), a(1), a(2)]=> 9 4 11. Copy out first word of a string. Assume no leading spaces, no trailing spaces. Assume words separated by single spaces now is the time". Is there any part of the problem that. If so, this gives part of the solution. Provides data needed by part you have. To copy part of a string line(____:____)

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents

Related Questions