필터 지우기
필터 지우기

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