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

How would you write a function file that accepts a m x n matrix and outputs a matrix of a different size?

1 Kommentar

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

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 4 Dez. 2013

0 Stimmen

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 Kommentar

Emily
Emily am 4 Dez. 2013
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!

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 4 Dez. 2013

Kommentiert:

am 4 Dez. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by