Get expert advice and community support for your questions on IDNLearn.com. Find the answers you need quickly and accurately with help from our knowledgeable and experienced experts.

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: