783 total contributions since 2017

#Freelancer (Part-Time)

#Image Processing

#Alma-mater Tezpur University India

Answered

Image segmenting or image division

Lets say Image is image1 having size 64x64 [rows colm]=size(image1); m=1; im1=[]; for i=1:4:rows-4 for j=1:4:colm-4 im1{m}...

Image segmenting or image division

Lets say Image is image1 having size 64x64 [rows colm]=size(image1); m=1; im1=[]; for i=1:4:rows-4 for j=1:4:colm-4 im1{m}...

1 day ago | 0

Answered

using svd before canny edge detection

im=rgb2gray(imread('2.png')); figure,imshow(im); [data_svd, S,D]=svd(double(im)); edge_image=edge(data_svd,'canny'); figure,...

using svd before canny edge detection

im=rgb2gray(imread('2.png')); figure,imshow(im); [data_svd, S,D]=svd(double(im)); edge_image=edge(data_svd,'canny'); figure,...

1 day ago | 0

| accepted

Answered

How do I make 2 bar stacked per month (x-axis)?

Test file is attched. data=xlsread('sample_file_test.xlsx'); bar(data,'stacked');

How do I make 2 bar stacked per month (x-axis)?

Test file is attched. data=xlsread('sample_file_test.xlsx'); bar(data,'stacked');

1 day ago | 0

Answered

hi everyone, how can i plot a matrix in logarithm scale dB

load('dBscale.mat') loglog(devst_x) Is this you are looking for?

hi everyone, how can i plot a matrix in logarithm scale dB

load('dBscale.mat') loglog(devst_x) Is this you are looking for?

1 day ago | 0

Answered

problem with if function ( Error using < Not enough input arguments.)

0.0677*rec*prc*dti/lt; %..................^ Define lt

problem with if function ( Error using < Not enough input arguments.)

0.0677*rec*prc*dti/lt; %..................^ Define lt

1 day ago | 1

| accepted

Answered

Incorrect Dimensions for Matrix Multiplication in DFT script

What I did? For matrix multiplication, the number of columns in first matrix must be equal to the number of rows in second matr...

Incorrect Dimensions for Matrix Multiplication in DFT script

What I did? For matrix multiplication, the number of columns in first matrix must be equal to the number of rows in second matr...

2 days ago | 0

Answered

How can I store the outputs of my function into a matrix?

#Edited:Initialize l=1 before for loop d_array={}; m=1 for... d_array{m}=horzcat(d, i, j); m=m+1; Save the all generated a...

How can I store the outputs of my function into a matrix?

#Edited:Initialize l=1 before for loop d_array={}; m=1 for... d_array{m}=horzcat(d, i, j); m=m+1; Save the all generated a...

3 days ago | 0

| accepted

Answered

Random Number for For Loop

iter_num=10; % change as per your requirement x=[]; for i=1:iter_num x(i)=randi([5 9]) end or iter_num=10; % change as per...

Random Number for For Loop

iter_num=10; % change as per your requirement x=[]; for i=1:iter_num x(i)=randi([5 9]) end or iter_num=10; % change as per...

3 days ago | 0

Answered

How can I sum a specified region of a matrix?

mat=matrix_given(20:25,1:3,:); result=sum(mat(:)); For detail read Multidimensional Arrays

How can I sum a specified region of a matrix?

mat=matrix_given(20:25,1:3,:); result=sum(mat(:)); For detail read Multidimensional Arrays

3 days ago | 1

Answered

Index exceeds array bounds error

Yes no error with w=rand(253,100); Check: >> whos w Name Size Bytes Class Attributes w ...

Index exceeds array bounds error

Yes no error with w=rand(253,100); Check: >> whos w Name Size Bytes Class Attributes w ...

3 days ago | 1

| accepted

Answered

How to create matrix using different columns but same length

Do the cell array final_mat={1signal_mat,2signal_mat, .......} Here 1signal_mat,2signal_mat etc are matrices with any sizes

How to create matrix using different columns but same length

Do the cell array final_mat={1signal_mat,2signal_mat, .......} Here 1signal_mat,2signal_mat etc are matrices with any sizes

3 days ago | 0

Answered

change the iteration in for loop

# Experts need your suggestions here for i=1:10 c(i)=...% do while isnan(c(i)) || c(i)>0.009 c(i)=.. end end I know multi...

change the iteration in for loop

# Experts need your suggestions here for i=1:10 c(i)=...% do while isnan(c(i)) || c(i)>0.009 c(i)=.. end end I know multi...

3 days ago | 0

Answered

How do i get periodic decaying impulse function using combination of sine and exponential functions

I didnot go through your code, just read the title of the questions- i get periodic decaying impulse function using combination...

How do i get periodic decaying impulse function using combination of sine and exponential functions

I didnot go through your code, just read the title of the questions- i get periodic decaying impulse function using combination...

3 days ago | 0

Answered

How do I increment the value of a variable after each statement by 1?

C=zeros(1,50); for i=1:50 C(i)=....% end

How do I increment the value of a variable after each statement by 1?

C=zeros(1,50); for i=1:50 C(i)=....% end

3 days ago | 0

Answered

Mix-integer optimization problem using GA

Define x1 as array with allowable values, x1 =[32 40 50 65]; if sum(x1==input_value)>=1 % Allowed % Do something else %No...

Mix-integer optimization problem using GA

Define x1 as array with allowable values, x1 =[32 40 50 65]; if sum(x1==input_value)>=1 % Allowed % Do something else %No...

3 days ago | 0

Answered

Continually updating graph/ Dynamic Graph/ Live Graph

Yes, you can do that. Use linkdata, which allows automatically update graphs when variables change.

Continually updating graph/ Dynamic Graph/ Live Graph

Yes, you can do that. Use linkdata, which allows automatically update graphs when variables change.

3 days ago | 0

Answered

Imfindcircles() detect circles which are not there..

When I checked imfindcircles on subtracted image (all pixels 255), I didnot get any circles. im=imread('subtracted.png'); Rmi...

Imfindcircles() detect circles which are not there..

When I checked imfindcircles on subtracted image (all pixels 255), I didnot get any circles. im=imread('subtracted.png'); Rmi...

4 days ago | 0

Answered

Understanding the if command

elseif isempty(c1) o(c(1)+1:end)=o(c(1)+1:end)-2^16; else %do nothin...

Understanding the if command

elseif isempty(c1) o(c(1)+1:end)=o(c(1)+1:end)-2^16; else %do nothin...

4 days ago | 0

| accepted

Answered

Variance of image in matlab

var_result=var(gray_image) It returns the row matrix variance with respect to each column Detail Documentation var For Compl...

Variance of image in matlab

var_result=var(gray_image) It returns the row matrix variance with respect to each column Detail Documentation var For Compl...

4 days ago | 0

Answered

How to normalize an image after applying median filter on the image?

How can I normalize an image Use im2double Please dont expect that filtering can remove all noise. You acn try other filters...

How to normalize an image after applying median filter on the image?

How can I normalize an image Use im2double Please dont expect that filtering can remove all noise. You acn try other filters...

4 days ago | 0

Answered

Why does the image after subtracting the original image from average image displays a black screen

There may be two issues- Suppose the image as following- image=[3 4 5;5 6 7;1 2 0]; If you calulate the average of the ima...

Why does the image after subtracting the original image from average image displays a black screen

There may be two issues- Suppose the image as following- image=[3 4 5;5 6 7;1 2 0]; If you calulate the average of the ima...

4 days ago | 0

| accepted

Answered

How to code "while" loop for the following problem?

ww=[3.749893 5.217726 0.412081 0.113385 1.27062 ...

How to code "while" loop for the following problem?

ww=[3.749893 5.217726 0.412081 0.113385 1.27062 ...

4 days ago | 1

| accepted

Answered

How to plot a curve using differential (dy/dx) data.

Do the integration of dy, both sides, which gives y, then plot (x,y)

How to plot a curve using differential (dy/dx) data.

Do the integration of dy, both sides, which gives y, then plot (x,y)

4 days ago | 0

Answered

Undefined function or variable but variable is defined

one is ul and other is u1 ul = u0 +((deltax/EA)*(B*N0+(1-B)*n1)); % This is UL u0 = u1; % This is U1 Hehe.. :)

Undefined function or variable but variable is defined

one is ul and other is u1 ul = u0 +((deltax/EA)*(B*N0+(1-B)*n1)); % This is UL u0 = u1; % This is U1 Hehe.. :)

4 days ago | 1

Answered

While plotting, reverse phase shift of square wave is observed?

Your Code: S2_nh = exp(-1i*nh*2*pi*D)*S1_nh; %...........^^^ I have removed the - sign, as y2 (blue signal) depents on S2_nh,...

While plotting, reverse phase shift of square wave is observed?

Your Code: S2_nh = exp(-1i*nh*2*pi*D)*S1_nh; %...........^^^ I have removed the - sign, as y2 (blue signal) depents on S2_nh,...

4 days ago | 0

Answered

How to transform a unit8 variable into a double one?

data_double=double(data); See details double

How to transform a unit8 variable into a double one?

data_double=double(data); See details double

4 days ago | 0

Answered

Replace elements of a matrix by a smaller matrix which contains circular shaped values margins

A=[1 1 1 1 1;1 1 1 1 1;1 1 1 1 1;1 1 1 1 1;1 1 1 1 1]; B=[0 0 0 0;0 5 5 0;0 5 5 0;0 0 0 0]; [r c]=find(B>1); A(r,c)=B(r,c) R...

Replace elements of a matrix by a smaller matrix which contains circular shaped values margins

A=[1 1 1 1 1;1 1 1 1 1;1 1 1 1 1;1 1 1 1 1;1 1 1 1 1]; B=[0 0 0 0;0 5 5 0;0 5 5 0;0 0 0 0]; [r c]=find(B>1); A(r,c)=B(r,c) R...

4 days ago | 0

Answered

Convert String to binary in each element

kol='1'; data1=str2double(kol); data2=logical(data1) Command Window: >> whos data2 Name Size Bytes Clas...

Convert String to binary in each element

kol='1'; data1=str2double(kol); data2=logical(data1) Command Window: >> whos data2 Name Size Bytes Clas...

5 days ago | 1

| accepted