MATLAB Answers

how to create output that is column vector

조회 수: 10(최근 30일)
joethomas4444
joethomas4444 20 Mar 2016
편집: Rick Rosson 20 Mar 2016
Write a function that accepts matrix M, with two columns. Each row represent a different person with the first number in each containing the person's year in age and the other containing how long that person has been a US cititzen. The function should return a column vector with the same number of rows as M. The number in each row of the result matrix should be either a 0 or 1 based on whether the individual can be a senator(1 for yes, 0 for no) based on the requirements that they be at least 30 years old and have been a citizen for 9 years.

  댓글 수: 0

댓글을 달려면 로그인하십시오.

답변(1개)

Rick Rosson
Rick Rosson 20 Mar 2016
편집: Rick Rosson 20 Mar 2016

  댓글 수: 0

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by