You are on page 1of 2

%% ASSIGNMENT NO:1 %% SUBMITTED BY:DESHMUKH AJINKYA SANTOSHRAO(11MCE0026) % QUESTION NO:1 %% close all; clear all; clc; % Given A=1;%5,10

v0=1/(4*pi); u0=v0; % Rows % M = 256; M = input('Enter No Of Rows \n'); % Column % N = 256; N = input('Enter No Of Columns \n'); % Expression for x=1:M for y=1:N f(x,y)=A*sin(u0*x+v0*y); end end imshow(f); title('Image Of f(x,y)=Asin(u0x + v0y) A=1 u0=v0=1/(4*pi)'); % QUESTION NO:2 %% % Take the input Arry of Numbers: arr = input('Enter the array that consists of alltypes of element(integer & Non-integer) \n'); % arr = [2,1,1i,1+j,0,-0.21,-4,0.2-0.4j]; a b c d e = = = = = floor(arr); real(arr); imag(arr); (b+c==a); find(d);

disp('Integer Elements are:'); disp(arr(e));

% Image

% Command Window

Enter No Of Rows: 256 Enter No Of Columns: 256 Enter the array that consists of all types of element (integer & Non-integer): [2, 1, 1i, 1+j, 0,-0.21,-4, 0.2-0.4j] Integer Elements are: 2 1 0 -4

You might also like