Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write 2 functions in Matlab. Each function goes in its own m-file. The two functions are: 1. y= replaceDot(text) will replace dot(.) with a blank('
Write 2 functions in Matlab. Each function goes in its own m-file. The two functions are: 1. y= replaceDot(text) will replace dot(.) with a blank(' '). Example INPUT: text='hi.hello.hi' OUTPUT:y=hi hello hi 2. Count=countsWords(str), input a string with words separated by blank, returns the number of words in the string.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started