In the code, the "createbook" and "displaybook" are functions Ive created and I know that these work and are not the issue. If someone could help me I would really appreciate it. If you need more information, just leave a comment and Ill get back to you
Books = [];
Choice = input('What would you like to do: ','s');
while (Choice)
if Choice == 'add book'
Title = input('Enter the title: ','s');
Author = input('Enter the author: ','s');
Pages = input('Enter the number of pages: ');
New = createbook(Title, Author, Pages);
displaybook(New);
fprintf('%s has been added to the library\n',New)
Books = [Books New];
elseif Choice == 'quit'
disp('PROGRAM END')
return;
end
Choice = input('What would you like to do: ','s');
end
strcmpfor comparing strings - and learn how to use debugger - matlabgui