Matlab Write Function Called Convertme Converts Given String Message M Char Array Chararr Q37094633

MATLAB

Write a function called ​convert_me​ that converts any givenstring message ​m​ into a char array ​char_arr​ and also outputsthe length of the message, ​count​. Your function should be definedas follows:

function [char_arr, count] = convert_me(m) %your code goes here endI will test your function as follows:

[char_arr,count] = convert_me(“This is fun”) (​Note: the inputargument is a string in double quotes​)
Your function should produce the following result:

char_arr = ‘This is fun’

count= 11

Note: the result is a char array in single

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.