Write a function that accepts an m x n matrix A?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How would you write a function file that accepts a m x n matrix and outputs a matrix of a different size?
1 commentaire
Image Analyst
le 4 Déc 2013
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
Réponses (1)
Walter Roberson
le 4 Déc 2013
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.
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!