Plotting Projections of a Rectangle with Angles
1 回表示 (過去 30 日間)
古いコメントを表示
I have a 256x256 rectangle with all entries being zero.
So far I Have:
figure
R=Pb2_rect; (This file was provided from my professor)
imshow(Pb2_rect)
title('256x256 Projection')
colorbar
theta=0;
The image is![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/281303/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/281303/image.png)
My task is to: Plot the projections of this rectangle for theta= 0, theta= 90 (see also function “radon” in matlab).
How do I do that?
3 件のコメント
Asvin Kumar
2020 年 4 月 6 日
The documentation says that theta can be of types numeric scalar, numeric vector or gpuArray. So, you should be able to give one angle as an input to the function.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Lighting, Transparency, and Shading についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!