Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Truth Table q p&q pla -pl-q -p&q 0 0 0 0 1 0 1 1 1 1 0 0 0 1 0 1 1 1

image text in transcribed
image text in transcribed
Truth Table q p&q pla -pl-q -p&q 0 0 0 0 1 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 0 1 1 0 2. Now, confirm your results using matlab. Experiment with using logical vectors and arrays to make a neat table, like that above. 3. Write a program using a matlab script m- file that asks the user for a number. If the number is positive is should print 'The number is positive to the screen. If it is negative, it should print out 'The number is negative! If it is neither, it should print out something stating that. 4. Write a matlab function that the takes a string as its input argument.The program should compare the name against a list of authorized names. If it matches, the program should print a welcome message to the screen specific to the user's name (e.g. "Welcome John"). Otherwise it should print "You are not authorized". (The function has no output arguments.)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions

Question

Does the writing demonstrate the you attitude?

Answered: 1 week ago