1,054 total contributions since 2017

#Image Processing

#Whatsapp+91-8387942066

#Alma-mater Tezpur University India

Answered

Plotting a cell array on Matlab

Let say cell arry is cell_data for i=1:181 data=cell_data{i}; % Now data is first matrics of cell array % You can acess the...

Plotting a cell array on Matlab

Let say cell arry is cell_data for i=1:181 data=cell_data{i}; % Now data is first matrics of cell array % You can acess the...

6 hours ago | 0

Answered

How can I find the value with the most change in my histogram?

More detail with example: data=[1 2 -4 5 6 0 5 20 10]; % Hist data is just simillar array diff_data=diff(data) idx=find(diff_...

How can I find the value with the most change in my histogram?

More detail with example: data=[1 2 -4 5 6 0 5 20 10]; % Hist data is just simillar array diff_data=diff(data) idx=find(diff_...

7 hours ago | 0

Answered

How to perform Sobel filter and HOG ?

How to perform Sobel filter and HOG ? Read Input image, say "I" Sobel, see detail here result=edge(I); HoG, see detail here...

How to perform Sobel filter and HOG ?

How to perform Sobel filter and HOG ? Read Input image, say "I" Sobel, see detail here result=edge(I); HoG, see detail here...

7 hours ago | 0

Answered

pyenv function not found

I'm running MATLAB 2018b You are using earlier MATLAB version. This function is Introduced in R2019b

pyenv function not found

I'm running MATLAB 2018b You are using earlier MATLAB version. This function is Introduced in R2019b

7 hours ago | 0

Answered

making volume from multiple slices

result=cat(Depth_size,slice1,slice2,slice3....); Depth_size must be same as number of slices to be add Say 3 slices then res...

making volume from multiple slices

result=cat(Depth_size,slice1,slice2,slice3....); Depth_size must be same as number of slices to be add Say 3 slices then res...

1 day ago | 0

| accepted

Answered

mixing 16 matrixs in 48 lines

After the code, you can add the following to extract the 3x6 sub 16 matrices from Q2ibar, and save them all in cell array mat, w...

mixing 16 matrixs in 48 lines

After the code, you can add the following to extract the 3x6 sub 16 matrices from Q2ibar, and save them all in cell array mat, w...

1 day ago | 0

Answered

creating matrix from a vector

let's suppose I have this vector v=[0; 0; 4; 6] and I want to create a matrix such that X=[0,0,0; 0,0,0; 4,4,0; 6,6,6] %...

creating matrix from a vector

let's suppose I have this vector v=[0; 0; 4; 6] and I want to create a matrix such that X=[0,0,0; 0,0,0; 4,4,0; 6,6,6] %...

1 day ago | 0

Answered

How to solve this error?

Save the function file in different MATLAB script and ensure that filename must be same as function name, that is jcoMatrix.m ...

How to solve this error?

Save the function file in different MATLAB script and ensure that filename must be same as function name, that is jcoMatrix.m ...

1 day ago | 0

| accepted

Answered

array of mean from array

One line with blockproc data=magic(400); result_mean=blockproc(data, [40 40], @(x) mean(x.data(:)));

array of mean from array

One line with blockproc data=magic(400); result_mean=blockproc(data, [40 40], @(x) mean(x.data(:)));

2 days ago | 1

Answered

How do I get rid of these >> symbols when writing fprint?

fprintf('Average temperature during SF summer months is %.2f\n', avgSFSummer); or More New Line Gap fprintf('Average temperat...

How do I get rid of these >> symbols when writing fprint?

fprintf('Average temperature during SF summer months is %.2f\n', avgSFSummer); or More New Line Gap fprintf('Average temperat...

2 days ago | 0

| accepted

Answered

Using if function for 'for statement'

X=0:0.1:3; % Define X as per requirements for i=1:length(X) if X(i)<0 break; else % do operation to ge...

Using if function for 'for statement'

X=0:0.1:3; % Define X as per requirements for i=1:length(X) if X(i)<0 break; else % do operation to ge...

2 days ago | 0

Answered

Shifted Stairstep graphs in a single figure

Is this? for j=1:100 stairs(j:j:100); hold on; end Or for j=1:100 stairs(j:j+1:100); hold on; end

Shifted Stairstep graphs in a single figure

Is this? for j=1:100 stairs(j:j:100); hold on; end Or for j=1:100 stairs(j:j+1:100); hold on; end

4 days ago | 0

Answered

How Huffman Key is getting generated in this

How Huffman Key is getting generated in this? Is this? function [key] = keyGen(n) n = n*8; bin_x = zeros(n,1,'uint8'); r = ...

How Huffman Key is getting generated in this

How Huffman Key is getting generated in this? Is this? function [key] = keyGen(n) n = n*8; bin_x = zeros(n,1,'uint8'); r = ...

4 days ago | 0

Answered

Find the index value

>> array_data=2:3:30 array_data = 2 5 8 11 14 17 20 23 26 29 Case 1: I assumed you are look...

Find the index value

>> array_data=2:3:30 array_data = 2 5 8 11 14 17 20 23 26 29 Case 1: I assumed you are look...

7 days ago | 0

| accepted

Answered

while loop question about the count

I am wonder how can I make e become a change number because when I running my code e is always equal 5 even I changed my enter n...

while loop question about the count

I am wonder how can I make e become a change number because when I running my code e is always equal 5 even I changed my enter n...

8 days ago | 0

Answered

how to extract the structure array from a cell array

Suppose you hace cell array data={ struc array1 struc array2 struc array3.....} If you want to extract struc array2 then.. re...

how to extract the structure array from a cell array

Suppose you hace cell array data={ struc array1 struc array2 struc array3.....} If you want to extract struc array2 then.. re...

10 days ago | 0

| accepted

Answered

How to use the index of a matrix using Unique function to alter a second matrix?

how do I apply the index to make B = [ 1, 8, 13, 2] >> B=B(indx) B = 1 8 13 2 Code: A = [ 2 5 9 3 5 ...

How to use the index of a matrix using Unique function to alter a second matrix?

how do I apply the index to make B = [ 1, 8, 13, 2] >> B=B(indx) B = 1 8 13 2 Code: A = [ 2 5 9 3 5 ...

12 days ago | 0

Answered

Plot mean as a green line width of 3

This? subplot (3,4,1),plot (y,'g','linewidth',3); I assumed y as a mean

Plot mean as a green line width of 3

This? subplot (3,4,1),plot (y,'g','linewidth',3); I assumed y as a mean

12 days ago | 0

Answered

plotting: making an array out of values made in a for loop?

R=.5; %m L=1.25; %m H=.25; %m N=100; phi=zeros(1,N); theta=linspace(0, 4*pi, N); for i=1:N fphi=@(phi) R*sin(theta(i)) + ...

plotting: making an array out of values made in a for loop?

R=.5; %m L=1.25; %m H=.25; %m N=100; phi=zeros(1,N); theta=linspace(0, 4*pi, N); for i=1:N fphi=@(phi) R*sin(theta(i)) + ...

12 days ago | 0

Answered

finding an array of roots?

Is this? R=.5; %m L=1.25; %m H=.25; %m N=100 phi=0; theta=linspace(0, 4*pi, N); for i=1:N fphi=@(phi) R*sin(theta(i)) + ...

finding an array of roots?

Is this? R=.5; %m L=1.25; %m H=.25; %m N=100 phi=0; theta=linspace(0, 4*pi, N); for i=1:N fphi=@(phi) R*sin(theta(i)) + ...

12 days ago | 0

Answered

decreasing point on curve

One way: Find the y, when y(i)<y(i-1) (First Case) iterate i from 2 to end Second way: data=y(i+1)-y(i); %Create the data, t...

decreasing point on curve

One way: Find the y, when y(i)<y(i-1) (First Case) iterate i from 2 to end Second way: data=y(i+1)-y(i); %Create the data, t...

14 days ago | 0

Answered

Why the I is always a constant

Befor answering the question, It seems you are messing with code and logic, if yes, figure out. Now the answer of the question ...

Why the I is always a constant

Befor answering the question, It seems you are messing with code and logic, if yes, figure out. Now the answer of the question ...

14 days ago | 0

Answered

Index in position 2 is invalid. Array indices must be positive integers or logical values.

for ky=-6:0.1:6 for kx=-6:0.1:6 f(10*ky+61,10*kx+61)=exp(i*10^(-16)*(2.16*(n+m)*kx+1.245*(n-m)*ky)) I(10*ky+61,...

Index in position 2 is invalid. Array indices must be positive integers or logical values.

for ky=-6:0.1:6 for kx=-6:0.1:6 f(10*ky+61,10*kx+61)=exp(i*10^(-16)*(2.16*(n+m)*kx+1.245*(n-m)*ky)) I(10*ky+61,...

14 days ago | 0

Answered

Function that converts Celsius to Fahrenheit and prints it to a file

Error in CelToFar (line 7) Far=((9*Cel/5)+32); Here it is- I assumed you pass the single aruments (scalar) at a time, if large...

Function that converts Celsius to Fahrenheit and prints it to a file

Error in CelToFar (line 7) Far=((9*Cel/5)+32); Here it is- I assumed you pass the single aruments (scalar) at a time, if large...

14 days ago | 0

| accepted

Answered

Counting values between values in array

A=123; B=129; result=sum(find(var==A | var==B))

Counting values between values in array

A=123; B=129; result=sum(find(var==A | var==B))

14 days ago | 0

Answered

Matrix dimensions error for adding noise vectors

The issue is here, you are trying to add different sizes matrices in the following line- new_sound_array=y+x1+x1; Where >> w...

Matrix dimensions error for adding noise vectors

The issue is here, you are trying to add different sizes matrices in the following line- new_sound_array=y+x1+x1; Where >> w...

14 days ago | 0

| accepted

Answered

how to do convolution Of this x1 and x10 function ?

result=conv(x1,x10); plot(result); Please do all other axes labeling and title

how to do convolution Of this x1 and x10 function ?

result=conv(x1,x10); plot(result); Please do all other axes labeling and title

14 days ago | 0

| accepted

Answered

Add columns into one column with each run

"Add columns into one column with each run" F=rand(10,1); [r c]=size(F); num_of_colm=10; % mention how many column you want t...

Add columns into one column with each run

"Add columns into one column with each run" F=rand(10,1); [r c]=size(F); num_of_colm=10; % mention how many column you want t...

15 days ago | 0

Answered

Vector dimensions not right

As already @Walter sir specified, you did not provide us the "t" data, here I have assumed the t data as same as t2 Please assi...

Vector dimensions not right

As already @Walter sir specified, you did not provide us the "t" data, here I have assumed the t data as same as t2 Please assi...

15 days ago | 0

| accepted

Answered

How to express this function?

function y=test1() T=3; W=pi; t=0.01:10 y=10*exp((-t./T).*sin(W.*t)) end Or Direct T=3; W=pi; t=0.01:10; y=10*exp...

How to express this function?

function y=test1() T=3; W=pi; t=0.01:10 y=10*exp((-t./T).*sin(W.*t)) end Or Direct T=3; W=pi; t=0.01:10; y=10*exp...

15 days ago | 0

| accepted