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

  If-Statement Practice


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 output = picker(condition, input1, input2)

    if condition

        output = input1;

    else

        output = input2;

    end

end

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

No comments

darkmode