This is your homework. What have you tried so far?
How to complete this matrix?
2 ビュー (過去 30 日間)
古いコメントを表示
- Use the meshgrid function with the following data: -8: 0.5: 8
- Use the following equation: R=x2+y2 treat x and y as vectors
- Use the Z=sin RR
- Hint: you will need the following: Z(R==0)=1
- Use the mesh function for you variables
10 件のコメント
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/244346/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/244347/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/244348/image.png)
which is what seems to be asked here.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!