Borrar filtros
Borrar filtros

how to write the equation in matlab as attached in file?

2 visualizaciones (últimos 30 días)
ajeet verma
ajeet verma el 29 de Ag. de 2017
Editada: KSSV el 29 de Ag. de 2017
i am unable to write the condition (even odd ) given in equation so help,

Respuesta aceptada

KSSV
KSSV el 29 de Ag. de 2017
for i = 1:10
if mod(i,2)
fprintf('%d is odd\n',i)
else
fprintf('%d is even\n',i)
end
end
  1 comentario
ajeet verma
ajeet verma el 29 de Ag. de 2017
Editada: KSSV el 29 de Ag. de 2017
i am trying like:
%%stair phase
clc;
clear all;
r=1000;
c=1000;
p=32;
N=8;
for i= 1:r
for j=1:c
SP(i,j)=(-pi+(i/p)*2*pi/m).*(i/(m*p)=even + (-pi+((i/p)+1)*2*pi/m).*(i/(m*p)=odd;
end
end
figure(1)
plot(SP);
please help where is wrong;

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by