Need help on array multiplication
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ronald Niwamanya
am 30 Nov. 2020
Kommentiert: sushanth govinahallisathyanarayana
am 30 Nov. 2020
I need help with the following
u1=[2 3 1 0];
u2=[2 1 3 0];
u3=[2 3 1 3];
u=[u1 u2 u3];
v1=mod(u1+u3,4)=[0 2 2 3]
v2=mod(u1+u2+u3,4)=[2 3 1 3]
v3=u3=[2 3 1 3]
v4=mod(u2+u3,4)=[0 0 0 3]
GRL=[1 1 0 0;0 1 0 1;1 1 1 1];
How can I use the multiplication similar to v=u*GRL to obtain the above results?
1 Kommentar
sushanth govinahallisathyanarayana
am 30 Nov. 2020
Yes, but you also need mod 4 operation.
for example, v1= mod([u1,u3][1;1] , 4)
assuming u1 and u3 are column vectors
Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!