How to complete this matrix?

2 次查看(过去 30 天)
Briana Pass
Briana Pass 2019-10-23
评论: Briana Pass 2019-10-23
  1. Use the meshgrid function with the following data: -8: 0.5: 8
  2. Use the following equation: R=x2+y2 treat x and y as vectors
  3. Use the Z=sin RR
  4. Hint: you will need the following: Z(R==0)=1
  5. Use the mesh function for you variables
  10 个评论
Guillaume
Guillaume 2019-10-23
matlab will naïvely divide zero by zero and give you NaN or Inf
There is nothing naive about it. dividing zero by zero is mathematically undefined. Matlab will give you NaN (not a number) if you still do it, never Inf for that.
The function is undefined at 0. You can define a new function that is:
which is what seems to be asked here.
Briana Pass
Briana Pass 2019-10-23
I am still very confused. What should my code consist of? If I have a deatiled line by line code I could fix my orignial errors.

请先登录,再进行评论。

回答(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