575 total contributions since 2011

Love MATLAB :)

Work with Wireless Sensor Networks, Medical Image processing (MRI,fMRi,DTI), High Performance Computing at UAB

Professional Interests: Parallel Computing, Supercomputing, Wireless sensor networks

Answered

Counting objects in an image

You could use techniques shown in many MATLAB image processing demos.

Counting objects in an image

You could use techniques shown in many MATLAB image processing demos.

3 months ago | 0

Answered

how to save a string as a filename?

Maybe something like this for number=1:10 file_name = sprintf('case study_#%d.txt',number); save(file_name,....

how to save a string as a filename?

Maybe something like this for number=1:10 file_name = sprintf('case study_#%d.txt',number); save(file_name,....

11 months ago | 3

| accepted

Answered

Distributed and parallel computing without DCS

Hi Chuck, In order to perform distributed computing across multiple computers you need the DCS license. We have DCS running ...

Distributed and parallel computing without DCS

Hi Chuck, In order to perform distributed computing across multiple computers you need the DCS license. We have DCS running ...

2 years ago | 1

Answered

Creating sub-matrices using one matrix

Look at the examples given here <http://stackoverflow.com/questions/13091193/how-to-select-a-submatrix-not-in-any-particular-pat...

Creating sub-matrices using one matrix

Look at the examples given here <http://stackoverflow.com/questions/13091193/how-to-select-a-submatrix-not-in-any-particular-pat...

4 years ago | 0

Answered

Finding structure array entries with certain values

You could use something like this strs={'1' '2' '3' '4'} ind=find(ismember(strs,'4')) >> ind = 4

Finding structure array entries with certain values

You could use something like this strs={'1' '2' '3' '4'} ind=find(ismember(strs,'4')) >> ind = 4

4 years ago | 0

Answered

Datenum: how many seconds in a day?

IF my guess is right matlab considers every day as 86400 seconds.. only in leap years does datenum make sure an extra day is add...

Datenum: how many seconds in a day?

IF my guess is right matlab considers every day as 86400 seconds.. only in leap years does datenum make sure an extra day is add...

4 years ago | 1

Answered

Not enough input arguments

Are you giving it u as an array? try running it like this.. works fine.. u=1:5; cost_function(u) output is J =...

Not enough input arguments

Are you giving it u as an array? try running it like this.. works fine.. u=1:5; cost_function(u) output is J =...

4 years ago | 0

Answered

Storing values from nested FOR loop (array only saves last run of results)

for i=1:4 for j=1:3 answerA(i,j)=i*1; answerB(i,j)=j*10; % tableA(i,:)=[answerA answerB] ...

Storing values from nested FOR loop (array only saves last run of results)

for i=1:4 for j=1:3 answerA(i,j)=i*1; answerB(i,j)=j*10; % tableA(i,:)=[answerA answerB] ...

4 years ago | 5

| accepted

Answered

Delete duplicate rows from a large cell array

wit_dup={'2000-01-10 1:00' 'HCM' '268' '20' '260' '2345' '0' '90' '2000-01-10 1:00' 'HCM' '268' '20' '260' '2345' '0' '...

Delete duplicate rows from a large cell array

wit_dup={'2000-01-10 1:00' 'HCM' '268' '20' '260' '2345' '0' '90' '2000-01-10 1:00' 'HCM' '268' '20' '260' '2345' '0' '...

4 years ago | 0

| accepted

Answered

Is it possible to save . mat <4095x1384x2 double> file to txt file?

You can save it as slices data1=data(:,:,1); data2=data(:,:,2); and then save or he alternative would be to use resha...

Is it possible to save . mat <4095x1384x2 double> file to txt file?

You can save it as slices data1=data(:,:,1); data2=data(:,:,2); and then save or he alternative would be to use resha...

4 years ago | 0

Answered

How to read DICOM RT Structure?

Might want to try <https://github.com/ulrikls/dicomrt2matlab> or try RSInfo=dicominfo('RS.ZZ_YUNINN_.dcm'); dicom...

How to read DICOM RT Structure?

Might want to try <https://github.com/ulrikls/dicomrt2matlab> or try RSInfo=dicominfo('RS.ZZ_YUNINN_.dcm'); dicom...

4 years ago | 3

| accepted

Answered

İ need to switch red and blue colors in RGB picture. How i can do that? my version of matlab is R2013a

Similar question: <http://www.mathworks.com/matlabcentral/answers/100476> or ii=imread('1.jpg'); % load original ...

İ need to switch red and blue colors in RGB picture. How i can do that? my version of matlab is R2013a

Similar question: <http://www.mathworks.com/matlabcentral/answers/100476> or ii=imread('1.jpg'); % load original ...

4 years ago | 0

Answered

Doing a plot within a FOR LOOP

some thing like this? clear for i = 0.04 : 0.01 : 0.06 B = -20000 + 57300*((1+i)^-20) figure() ...

Doing a plot within a FOR LOOP

some thing like this? clear for i = 0.04 : 0.01 : 0.06 B = -20000 + 57300*((1+i)^-20) figure() ...

4 years ago | 1

| accepted

Answered

How can I make subplots larger?

Do you just want to make the figure taller? x=1:10; y1=x.^0.5; y2=x; y3=x.^2; y4=x.^3; figure1=fig...

How can I make subplots larger?

Do you just want to make the figure taller? x=1:10; y1=x.^0.5; y2=x; y3=x.^2; y4=x.^3; figure1=fig...

4 years ago | 2

| accepted

Answered

Undefined function 'acker' for input arguments of type 'double'.

acker is the old pole placement function using Ackerman's formula from the control system toolbox.. try which acker ...

Undefined function 'acker' for input arguments of type 'double'.

acker is the old pole placement function using Ackerman's formula from the control system toolbox.. try which acker ...

4 years ago | 0

Answered

can anyone provide me the code for motion detection in a video????????

Many of them are available in file exchange <http://www.mathworks.com/matlabcentral/fileexchange/18151-motion-detection-in-a...

can anyone provide me the code for motion detection in a video????????

Many of them are available in file exchange <http://www.mathworks.com/matlabcentral/fileexchange/18151-motion-detection-in-a...

4 years ago | 1

Answered

how to get average of more than one (atleast 2288) images?

An example is given here <http://stackoverflow.com/questions/5689639/how-to-average-multiple-images-in-matlab/14222792#14222792>...

how to get average of more than one (atleast 2288) images?

An example is given here <http://stackoverflow.com/questions/5689639/how-to-average-multiple-images-in-matlab/14222792#14222792>...

4 years ago | 0

Answered

How to use parfor for fast matrix calculations with different dimensions???

You do not need to use 'parfor' or even 'for' to get to what you are trying (i.e. find 1's in the matrix). Is there a specific r...

How to use parfor for fast matrix calculations with different dimensions???

You do not need to use 'parfor' or even 'for' to get to what you are trying (i.e. find 1's in the matrix). Is there a specific r...

4 years ago | 0

Answered

Is it possible to downgrade MATLAB?

You should get access to earlier releases if you buy a current license. Mine shows me as far back as R11.1 available for downlo...

Is it possible to downgrade MATLAB?

You should get access to earlier releases if you buy a current license. Mine shows me as far back as R11.1 available for downlo...

4 years ago | 0

| accepted

Answered

swap columns of a matrix

You could also use out= fliplr(k_minus) This flips the matrix left-right <http://www.mathworks.com/help/matlab/ref/fliplr...

swap columns of a matrix

You could also use out= fliplr(k_minus) This flips the matrix left-right <http://www.mathworks.com/help/matlab/ref/fliplr...

4 years ago | 1

| accepted

Answered

I'm trying to make a function to create a chirp signal with a clip distortion, when I run the function, It won't play and just displays columns, where is the problem?

run your code as follows a=SignalGen(10,200,1000,5,3,100); % suppress output Signal sound(a) % to hear

I'm trying to make a function to create a chirp signal with a clip distortion, when I run the function, It won't play and just displays columns, where is the problem?

run your code as follows a=SignalGen(10,200,1000,5,3,100); % suppress output Signal sound(a) % to hear

4 years ago | 0

| accepted

Answered

Surface area of a 3D-plot from a matrix.

I do not think MALTAB has a built-in function. (I might be wrong though) However a similar question has been answered here <ht...

Surface area of a 3D-plot from a matrix.

I do not think MALTAB has a built-in function. (I might be wrong though) However a similar question has been answered here <ht...

4 years ago | 1

Answered

how to find elements in an array

x = 1:100; y = 201:300; a=[ 215 250 283]; c=ismember(y,a) x(c) should give you 15 50 83

how to find elements in an array

x = 1:100; y = 201:300; a=[ 215 250 283]; c=ismember(y,a) x(c) should give you 15 50 83

4 years ago | 1

Answered

feval(symengine, 'partfrac' command error

You forgot the * between 14 and x feval(symengine, 'partfrac', 4/ (((x - 7)^2 + 4^2 )* (x^2+14*x + 65)))

feval(symengine, 'partfrac' command error

You forgot the * between 14 and x feval(symengine, 'partfrac', 4/ (((x - 7)^2 + 4^2 )* (x^2+14*x + 65)))

4 years ago | 1

| accepted

Answered

How to change Elements in Matrix per row depending on their size in reference to a particular Element (without loop)

A laborious way of doing it.. B=[A(1,:);A(3,:);A(4,:)]; B(B >=3)=3; C=[A(2,:);A(5,:)]; C(C >=2)=2; Out=...

How to change Elements in Matrix per row depending on their size in reference to a particular Element (without loop)

A laborious way of doing it.. B=[A(1,:);A(3,:);A(4,:)]; B(B >=3)=3; C=[A(2,:);A(5,:)]; C(C >=2)=2; Out=...

4 years ago | 0

Answered

How do I reshape a dataset?

a= rand (2,4) size(a) b=a' size(b) Is this what you are looking for ? or b= reshape(a,4,[]); ...

How do I reshape a dataset?

a= rand (2,4) size(a) b=a' size(b) Is this what you are looking for ? or b= reshape(a,4,[]); ...

4 years ago | 0

Answered

How to add a folder permanently to matlab path?

You can put the addpath statement to startup.m Heres how to create startup.m <http://www.mathworks.com/help/matlab/ref/startu...

How to add a folder permanently to matlab path?

You can put the addpath statement to startup.m Heres how to create startup.m <http://www.mathworks.com/help/matlab/ref/startu...

4 years ago | 1

| accepted

Answered

combine each entry of a cell array and a double array

A= {'A1' 'A2' 'A3'} B= {'B1' 'B2' } for ii= 1:length(A) for jj=1:length(B) out{ii,jj}=[A{1,ii} B{1,jj}]...

combine each entry of a cell array and a double array

A= {'A1' 'A2' 'A3'} B= {'B1' 'B2' } for ii= 1:length(A) for jj=1:length(B) out{ii,jj}=[A{1,ii} B{1,jj}]...

4 years ago | 1