dflipflop Page 1 of 1 function[q,q1] = dflipflop(d,cp,g,f) q = ~(~(d&cp)|(g)); q1 = ~((~(~d&cp))|f); end Error using dflipflop (line 3) Not enough input arguments. Published with MATLAB® R2013a file:///C:/Users/20103148/Documents/MATLAB/Experiment%206/html/dflipflop.html 30-03-2022 Untitled Page 1 of 1 clear all; cp = [0,0,0,0,1,1,1,1]; d = [0,1,0,1,0,1,0,1]; g=0; f=1; m=[0,0,0,0,0,0,0,0]; for i=1:8 m(i) = g; [g,f] = dflipflop(d(i),cp(i),g,f); end g=0; f=1; [g,f] = dflipflop(d,cp,g,f); t = [cp',m',d',g']; disp(' disp(t); clk 0 0 0 0 1 1 1 1 clk q 0 0 0 0 0 0 1 0 q d 0 1 0 1 0 1 0 1 d q(t+1)'); q(t+1) 0 0 0 0 0 1 0 1 Published with MATLAB® R2013a file:///C:/Users/20103148/Documents/MATLAB/Experiment%206/html/Untitled.html 30-03-2022