필터 지우기
필터 지우기

Write a function that accepts an m x n matrix A?

조회 수: 2 (최근 30일)
Emily
Emily 2013년 12월 4일
댓글: Emily 2013년 12월 4일
How would you write a function file that accepts a m x n matrix and outputs a matrix of a different size?
  댓글 수: 1
Image Analyst
Image Analyst 2013년 12월 4일
Yeah, what about it? That's a question for you , which you should tag as homework to be honest. Do you have a question for us ? And it can't be "can you do my homework for me?" http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer

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

답변 (1개)

Walter Roberson
Walter Roberson 2013년 12월 4일
If the input matrix is not empty, output the empty matrix. If the input matrix is empty, output 'can you do my homework for me?' -- which, not being empty, will be a matrix of a different size than the input.
  댓글 수: 1
Emily
Emily 2013년 12월 4일
I'm not trying to have you do my homework for me. I'm definitely trying to do it myself... I've tried a lot of things but, alas, nothing has come close to working. I know how to write a function file that accepts an input, but when it comes to making it a vector input I'm completely lost. I'm going to keep fiddling around with it but I was just hoping I could get some advise, I don't know if I'm asking in the right place though, so I'm sorry if its wrong!

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

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by