Not enough inputs error
Mostra commenti meno recenti
I using a buttonDownFnc on an image set to this function. It is supposed to move the card (image) from one pile to another in an array. I use a bunch of arrays to store everything.
So when I made the function I needed it to reference a few arrays, which are the ones currently listed. However, I am getting a "not enough inputs" even though I call all of them.
In a perfect world, I just set up an if statement to the buttonDownFnc instead of calling a function but from what I have read that isn't an option.
Any help would be amazing!
function flip(played1,Pflip,played2,Cflip,hObject,eventData)
disp(Pflip)
played1 = {played1,Pflip(1,1)};
played2 = {played2,Cflip(1,1)};
Pflip(1)=[];
Cflip(1)=[];
set(imshow(card(53)),'buttonDownFcn',@flip);
end
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Movie in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!