introduction to programming with matlab - Vanderbilt University week-8 assignment 1 solutions

Character Vectors

These solutions are for reference only.

It is recommended that you should solve the assignment and quiz by yourself honestly then only it makes sense to complete the course.

but if you cant figure out some part of it than you can refer these solutions

make sure you understand the solution  

dont just copy paste it

-----------------------------------------

function coded = caesar(sequence, shift) sequence = double(sequence); sequence = sequence + shift; coded = char(loop(32, 126, sequence)); end function val = loop(start, stop, val) r = stop - start + 1; val = mod(val - start + r, r) + start; end



main course : https://www.coursera.org/learn/matlab

darkmode