my H.W question

6 次查看(过去 30 天)
mohamed
mohamed 2013-12-4
评论: Matt J 2013-12-5
hi please i cant solve this problem
Generate a matrix that each element is a function of its number of row and number of column as follow A (i ,j) = i^3 + j^3 .

采纳的回答

Matt J
Matt J 2013-12-4
doc ndgrid
doc bsxfun
  4 个评论
mohamed
mohamed 2013-12-4
is is a H.W question and so far i i dont understand it
Matt J
Matt J 2013-12-5
Do you understand why the following produces the output that it does? If so, you should think about how modifying it could help you.
>> bsxfun(@plus,[20 30 40 50].',[1 2 3])
ans =
21 22 23
31 32 33
41 42 43
51 52 53

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Operating on Diagonal Matrices 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by