I have been given some ready made code and an input and expected output now I need to find a way to calculate the output from the input
This is the code I have been given
3 2 4
T T
F F
T T
F F F F
T T T T
and i have been asked to calculate the logical matrix P=mn
resolved
This is the basic schema for matrix containing integers.
You have to do 2 steps:
1) Initiate the P matrix
2) Operate with ‘T’ and ‘F’ values instead of integers.
Probably the simplest way to accomplish the step 2 is to use eval function:
And change the line:
But you still need to convert the values from P to ‘T’ or ‘F’ values. Hope this helps.
This produces the output: