Question: function (outstri Input Type instr 1xNchar chari 1xl char char2 1x1 char Output Type out Str 1XN char replaceChar (instr, charl, char2) Description The input
function (outstri Input Type instr 1xNchar chari 1xl char char2 1x1 char Output Type out Str 1XN char replaceChar (instr, charl, char2) Description The input character array The character to be replaced The replacing character Description The output character any Details Write a function replaceChar, which will replace all occurrences of a given character in a character array by another given character.
For example, >> Str replaceCharts is a text!..T") Our Str This Is TT! Tips
Check the built in function strfind. Function A Save e Reset MATLAB 1 function Coutstrl = replaceChar instr, chari, char2) I
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
