create a magic 5x5 matrix and remove the diagonal elements to generate a new 5x4 matrix. provide 2 different solutions
1 次查看(过去 30 天)
显示 更早的评论
Create a magic 5x5 matrix and remove the diagonal elements to generate a new 5x5 matrix.Provide 2 different solutions.
please can you provide explanations for why you do each step.
2 个评论
Steven Lord
2019-5-9
This sounds like a homework assignment. If it is, show what you've done to try to solve the problem and ask a specific question about where you're having difficulty and we may be able to offer guidance.
If you're not sure even where to start because you aren't sure how to work with MATLAB, I strongly recommend going through the MATLAB Onramp free tutorial which will help you learn the essentials of MATLAB programming.
If you're unclear about the question as a whole, I recommend contacting your professor and/or the teaching assistant for your course for clarification.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Operating on Diagonal Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!