function encStr = encrypt(s,key);
prompt='Enter message to be encrypted: ';
key=input('Enter the key: ');
fprintf('The encrypted message is: %s\n',encStr);
Hi this is my function above. I don't want to see an ans when I apply this function. I searched it online but most of the answers says that I should get rid of encStr in the function but I must use this format. Can you help me?