Borrar filtros
Borrar filtros

Plotting Projections of a Rectangle with Angles

1 visualización (últimos 30 días)
Nasir Holliday
Nasir Holliday el 1 de Abr. de 2020
Comentada: Asvin Kumar el 6 de Abr. de 2020
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
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 comentarios
Nasir Holliday
Nasir Holliday el 1 de Abr. de 2020
I did look at that, but the radon function uses a range for theta, whereas in this exercise example I am only using one angle.
Asvin Kumar
Asvin Kumar el 6 de Abr. de 2020
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.

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by