Connect with a global community of experts on IDNLearn.com. Our experts provide timely, comprehensive responses to ensure you have the information you need.

a lie detector returns the text 'truth' or 'lie', either as a string scalar or a character vector. write a logical function called testvalue that is assigned a logical true if userresult contains the text 'truth'. otherwise, assign testvalue with a logical false. the test should be insensitive to case. ex: