Question: Truth Table q p&q pla -pl-a -p&q 0 0 0 0 1 0 1 1 1 1 0 0 0 1 0 1 1 1


Truth Table q p&q pla -pl-a -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.) 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.) 5. Below is a program segment. List what it should display to the screen. Be exact - don't list what you think it should output if it were correct. Rather list what it actually outputs (i.e. pretend you are a computer). Do this without using matlab
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
