Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Incorrect

10Size
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Fail
 
%%
private_key{1} = '5KYZdUEo39z3FPrtuX2QbbwGnNP5zTd7yyr2SC1j299sBCnWjss';
address{1} =  '1HZwkjkeaoZfTSaJxDw6aKkxp45agDiEzN';
private_key{2} = '5KPZC58SA5LXM3hQA6LQ761hP6YFyEW58v1uAd4yAgsgbZxqCZR';
address{2} =  '1DPZAu8Lowvmi3WdRpvzhkWLkSz7K2k7qY';
private_key{3} = '5JQeiA915aSm9RCUwiasAVeass1DVthgFfNy76KRYA9689tqJX7';
address{3} =  '1889nUYazT9MhsqE4fxutq1dpyspHZEiaM';
private_key{4} = '5JPNo4Q5A3AzhR2VRScgyZhJbgCbq3gHcd4w4EDimUBN9TTWq2s';
address{4} =  '1CvKHaVAKsGGftTFZBdJRcxozxeQo7rXUk';
private_key{5} = '5Kdd1i85z2myGnN4ndHW96rNDQW1AFLkqLUewPodTyxm1EK2gd1';
address{5} =  '12iMNgciNRutMSeu18iaByKYBPnk88Hcm1';
private_key{6} = '5KaSncNnmejNkcZiHWh74kHf8jzUutKmoajUtgnFhT4e4mHK6UT';
address{6} =  '1JmrvhqYP4EpSRAhuKkn2NtmPvPNCxA9Kd';
private_key{7} = '5Jjac2ukidTt8fTENXjUWZaBZpSgiADmEzv1EhSUYrkGpRYEeoK';
address{7} =  '162ZamkWtU4MjmayDqfZiZ8YDWha1cBqDz';
private_key{8} = '5J9qJjxEt4YHtnHBQX575mmpQ12KHCfdeY5ay6DPTrGCYG4pMp8';
address{8} =  '15DCDa22KmMe4t4732jYAd6YFWTCuaWqFf';
private_key{9} = '5J1SxwfR2fFYKrspZr2nPSKaQhowL88fpBSMAEVXVg1GCDkeuVX';
address{9} =  '12qFUiu25hUX9h1DUfU9LcqHGDdnGaJdXz';
private_key{10} = '5JNzgZtEFAgWiNwtNvHsFxL8K5ixXHzvGVDTmi1EPQQEaBAbXNT';
address{10} =  '19b8X6TRsmHFWm4sJKo9NTHdTUmu38SqxE';
%{
 "I would prefer even to fail with honor than win by cheating."
                                                                Sophocles
%}
for k=randperm(10)
if address{k}==private2public(private_key{k}) else fail{-1}, end
end
Error: Undefined variable fail.