Hello, I am having problems with some text string errors in my code. Any help would be appreciated. Here is a snippet of my code.
clear all
value = input(['Please enter a positive real numerical ' ...
'measurement of volume:']);
initial = input(['Please select a starting measurement unit' ...
'from the following menu of choices \n' ...
'(liter - l, gallon - gal, cubic feet - ft3, or bushels - bu):']);
final = input (['Please select an ending measurement unit' ...
'from the following menu of choices \n' ...
'(liter - l, gallon - gal, cubic feet - ft3, or bushels - bu):']);
[final_conversion] = conversion (initial, final, value);
if strcmp(initial, 'l') && strcmp(final, 'gal')
disp ([num2str(value),' liters is equal to ' ...
,num2str(final_conversion), ' gallons.'])
If I run the program I am getting the following errors:
??? Error using ==> input
Undefined function or variable 'l'.
Error in ==> hw2 at 11
initial = input(['Please select a starting measurement unit' ...
Any guidance would be greatly appreciated!