Write a function that will receive an integer input argument, and will return logical 1 for true if the input argument is divisible by 7 or logical...
View the step-by-step solution to:

Question

This question was created from ITEC2600 A1 https://www.coursehero.com/file/23635210/ITEC2600-A1/

23635210-314423.jpeg
23635210-314423.jpeg

Write a function that will receive an integer input argument, and will return logical 1 for true if the input argument is divisible by 7 or logical false if it is not.

Top Answer

%Matlab code % matlab command window r = divisibleBySeven(7) %save file as divisibleBySeven.m function r =... View the full answer

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question