Copy Code Copy Command Create a string array and delete substrings from it. Get str = ["the quick brown fox jumps"; "over the lazy dog"] str = 2x1 string "the quick brown fox jumps" "over the lazy dog" Delete the substring "the " from str. The erase function deletes both in...
Copy Code Copy Command Read and display an image. Get I = imread("peppers.png"); imshow(I) Select a rectangular region of size 50-by-100 pixels from a random location in the image. Get rect = randomWindow2d(size(I),[50 100]); Erase the pixels from within the rectangular region...
To specify your own custom token types when tokenizing, use the'CustomTokens'or'RegularExpressions'options intokenizedDocument. If you do not specify a type for a custom token, then the software sets the corresponding token type to'custom'. ...
Generate C and C++ code using MATLAB® Coder™. Thread-Based Environment Run code in the background using MATLAB®backgroundPoolor accelerate code with Parallel Computing Toolbox™ThreadPool. Distributed Arrays Partition large arrays across the combined memory of your cluster using Parallel Compu...
Calculate with arrays that have more rows than fit in memory. C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™. Thread-Based Environment Run code in the background using MATLAB®backgroundPoolor accelerate code with Parallel Computing Toolbox™ThreadPool. ...
To specify your own custom token types when tokenizing, use the'CustomTokens'or'RegularExpressions'options intokenizedDocument. If you do not specify a type for a custom token, then the software sets the corresponding token type to'custom'. ...
Calculate with arrays that have more rows than fit in memory. C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™. Thread-Based Environment Run code in the background using MATLAB®backgroundPoolor accelerate code with Parallel Computing Toolbox™ThreadPool. ...
Copy Code Copy Command Create a string array and delete substrings from it. Get str = ["the quick brown fox jumps"; "over the lazy dog"] str = 2x1 string "the quick brown fox jumps" "over the lazy dog" Delete the substring "the " from str. The erase function deletes both in...
To specify your own custom token types when tokenizing, use the'CustomTokens'or'RegularExpressions'options intokenizedDocument. If you do not specify a type for a custom token, then the software sets the corresponding token type to'custom'. ...
Tips To delete multiple occurrences of a match when the occurrences overlap, use thestrrepfunction.eraseonly deletes the first occurrence when occurrences overlap. Extended Capabilities expand all Version History Introduced in R2016b Select a Web Site ...