Problem

MATLAB

Download this code. This code is full syntax errors. Fix the errors and submit the corrected code with name matlab_script_full_of_errors_fixed.m in your folder for this HW. Explain in front of each corrected MATLAB statement, why the error occurred. Modify the last two variables so that they display,

>> Persian
Persian =
Persian is a human language
>> Spanish
Spanish = 
    'Spanish '    'is '    ' another'    'language'

Modify the last line such that for the last line the code displays,

Persian is not the same as Spanish

Explain these results.

Solution

MATLAB

The corrected script can be found here.

Comments