Answered

Is it possible to refresh a web page I opened with Matlab?

Put it in a while loop ii=1; while ii==1 [stat,h] = web('www.cnn.com'); % open site pause(10) % wait 10 sec...

Is it possible to refresh a web page I opened with Matlab?

Put it in a while loop ii=1; while ii==1 [stat,h] = web('www.cnn.com'); % open site pause(10) % wait 10 sec...

8 years ago | 0

Answered

plotting intensity over time

Eg: s=rand(3,3,10); % 10 images of size 3x3 in a 3d matrix s pixel1(1,:)=s(1,1,:); % pixel 1,1 from each matrix i...

plotting intensity over time

Eg: s=rand(3,3,10); % 10 images of size 3x3 in a 3d matrix s pixel1(1,:)=s(1,1,:); % pixel 1,1 from each matrix i...

8 years ago | 0

Answered

MATLAB Solve function gives [ empty sym ]

I assume the equation does not have an explicit solution. Does matlab throw out an error that explicit solution cannot be fou...

MATLAB Solve function gives [ empty sym ]

I assume the equation does not have an explicit solution. Does matlab throw out an error that explicit solution cannot be fou...

8 years ago | 0

Answered

reading a particular value from a textfile

To read the data in mth row in th column of variable c use fid = fopen ('\sample.txt'); c=fscanf (fid, '%g%g'); c(m,n)...

reading a particular value from a textfile

To read the data in mth row in th column of variable c use fid = fopen ('\sample.txt'); c=fscanf (fid, '%g%g'); c(m,n)...

8 years ago | 0

| accepted

Answered

How to detect peak value of continous input signal

I think the Peak finder can help you <http://www.mathworks.com/help/dsp/ref/peakfinder.html?searchHighlight=peak+finder>

How to detect peak value of continous input signal

I think the Peak finder can help you <http://www.mathworks.com/help/dsp/ref/peakfinder.html?searchHighlight=peak+finder>

8 years ago | 0

| accepted

Answered

How to find the located points after smoothing the data? (See Figure)

There are multiple options for smoothing the data <http://www.mathworks.com/help/curvefit/smoothing-data.html> doc smooth...

How to find the located points after smoothing the data? (See Figure)

There are multiple options for smoothing the data <http://www.mathworks.com/help/curvefit/smoothing-data.html> doc smooth...

8 years ago | 0

Answered

how to get permutation of each rows of matrix

a=[ 1 2 2 2 2 3]; for ii=1:size(a,1) q(ii,:,:)=unique(perms(a(ii,:)),'rows'); end ou...

how to get permutation of each rows of matrix

a=[ 1 2 2 2 2 3]; for ii=1:size(a,1) q(ii,:,:)=unique(perms(a(ii,:)),'rows'); end ou...

8 years ago | 1

Answered

How to represent values in horizontal in bar chart

I have found these to be good solutions <http://www.mathworks.com/matlabcentral/fileexchange/8722-rotate-tick-label> <htt...

How to represent values in horizontal in bar chart

I have found these to be good solutions <http://www.mathworks.com/matlabcentral/fileexchange/8722-rotate-tick-label> <htt...

8 years ago | 0

Answered

Does Matlab provide a formel editor?

I assume you could use the symbolic math toolbox. <http://www.mathworks.com/products/symbolic/description2.html>

Does Matlab provide a formel editor?

I assume you could use the symbolic math toolbox. <http://www.mathworks.com/products/symbolic/description2.html>

8 years ago | 1

| accepted

Answered

Saving values in workspace automatically for a loop

This video should help: http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/ You can save the output in a vec...

Saving values in workspace automatically for a loop

This video should help: http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/ You can save the output in a vec...

8 years ago | 1

| accepted

Answered

how to find indices on a boundary?

regionprops might help doc regionprops look at the section 'perimeter' <http://www.mathworks.com/help/images/ref/regio...

how to find indices on a boundary?

regionprops might help doc regionprops look at the section 'perimeter' <http://www.mathworks.com/help/images/ref/regio...

8 years ago | 0

Answered

how to access Cell data

This link gives good examples about accessing cell data <http://www.mathworks.com/help/matlab/matlab_prog/access-data-in-a-cell-...

how to access Cell data

This link gives good examples about accessing cell data <http://www.mathworks.com/help/matlab/matlab_prog/access-data-in-a-cell-...

8 years ago | 0

Answered

Summing nonsequential elements in a matrix

works just fine a=magic(5) a = 17.00 24.00 1.00 8.00 15.00 2...

Summing nonsequential elements in a matrix

works just fine a=magic(5) a = 17.00 24.00 1.00 8.00 15.00 2...

8 years ago | 1

Answered

Load many files in matlab

You can find some examples here: <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F> and <http://ww...

Load many files in matlab

You can find some examples here: <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F> and <http://ww...

8 years ago | 0

Answered

using kmeans function in parallel

Don't know if this would help but you can find an implementation of k-means in MATLAB using MATLABmpi (message passing interface...

using kmeans function in parallel

Don't know if this would help but you can find an implementation of k-means in MATLAB using MATLABmpi (message passing interface...

8 years ago | 0

Answered

how to find overlapping intervals?

Your question is a little ambiguous but her is something you can use doc intersect To see where the arrays overlap ...

how to find overlapping intervals?

Your question is a little ambiguous but her is something you can use doc intersect To see where the arrays overlap ...

8 years ago | 0

Answered

how to choose the value?

An example of how to use switch case: adapt for your particular case busNum=input('Enter the bus number:'); switch b...

how to choose the value?

An example of how to use switch case: adapt for your particular case busNum=input('Enter the bus number:'); switch b...

8 years ago | 1

| accepted

Answered

How to save in for loops

Refer to my answer here <http://www.mathworks.com/matlabcentral/answers/39966> This video should also help <http://blogs.math...

How to save in for loops

Refer to my answer here <http://www.mathworks.com/matlabcentral/answers/39966> This video should also help <http://blogs.math...

8 years ago | 1

Answered

why code using parallel processing has longer running time than the other?

Huda, You are running a small jobs which might have more overhead parallelizing sincce the number of iterations or jobs size ...

why code using parallel processing has longer running time than the other?

Huda, You are running a small jobs which might have more overhead parallelizing sincce the number of iterations or jobs size ...

8 years ago | 1

Answered

extract from different .mat file to plot

A small example is here: <http://stackoverflow.com/questions/10668362/how-i-read-mat-format-files-from-folder-in-matlab> Anot...

extract from different .mat file to plot

A small example is here: <http://stackoverflow.com/questions/10668362/how-i-read-mat-format-files-from-folder-in-matlab> Anot...

9 years ago | 0

Answered

Java Mac OSX 10.6 Update 12 Problem with Matlabpool?

What java version are you at. Open terminal and type java -version I tested with java version "1.6.0_37" Jav...

Java Mac OSX 10.6 Update 12 Problem with Matlabpool?

What java version are you at. Open terminal and type java -version I tested with java version "1.6.0_37" Jav...

9 years ago | 1

Answered

Creating a submatrix from a matrix

A = [1 3 7; 10 1 2; 11 5 9; 12 2 5] out=A(find(sum(A<=7,2)==size(A,2)),:) % rows with elements <=7

Creating a submatrix from a matrix

A = [1 3 7; 10 1 2; 11 5 9; 12 2 5] out=A(find(sum(A<=7,2)==size(A,2)),:) % rows with elements <=7

9 years ago | 0

Answered

How to get z for different x

x = [-2:0.1:2]; z=x.*(1-x).*(2-x).*(4-x)./((6-x)-(1-x).*(x-7)) You missed the . before the division to do element by e...

How to get z for different x

x = [-2:0.1:2]; z=x.*(1-x).*(2-x).*(4-x)./((6-x)-(1-x).*(x-7)) You missed the . before the division to do element by e...

9 years ago | 0

Answered

Using find to compare matrices

You do not need find Y = [1,2,3,3,1; 5,6,7,8,9]' Y((Y(:,1)==1),2) % id =1 Y((Y(:,1)==2),2) % id=2 Y((Y(:,1)=...

Using find to compare matrices

You do not need find Y = [1,2,3,3,1; 5,6,7,8,9]' Y((Y(:,1)==1),2) % id =1 Y((Y(:,1)==2),2) % id=2 Y((Y(:,1)=...

9 years ago | 0

| accepted

Answered

How can I determine the frequency of a text term occurring in a matrix and add this frequency to the matrix?

a={'CSARDLSGG##YNEQFF' 'CSARDLRPGGAYNEQFF' 'CSALGGGSTYNEQFF' 'CSALGGGSTYNEQFF' 'CSALGGGSTYNEQFF' 'CSAGVRLAGGVYQETQYF' 'CSAGTRK...

How can I determine the frequency of a text term occurring in a matrix and add this frequency to the matrix?

a={'CSARDLSGG##YNEQFF' 'CSARDLRPGGAYNEQFF' 'CSALGGGSTYNEQFF' 'CSALGGGSTYNEQFF' 'CSALGGGSTYNEQFF' 'CSAGVRLAGGVYQETQYF' 'CSAGTRK...

9 years ago | 0

Answered

Save many vectors in one file

a=rand(10,1); % first vector b=rand(10,1); % second vector c=rand(10,1); % third vector out=[a b c] % com...

Save many vectors in one file

a=rand(10,1); % first vector b=rand(10,1); % second vector c=rand(10,1); % third vector out=[a b c] % com...

9 years ago | 0

Answered

What are the MATLAB job options?

Here is a basic search from a job site showing skill in MATLAB needed.. <http://jobsearch.monster.com/search/?q=matlab> t...

What are the MATLAB job options?

Here is a basic search from a job site showing skill in MATLAB needed.. <http://jobsearch.monster.com/search/?q=matlab> t...

9 years ago | 0

Answered

May I get the matlab code for Otsu's method of Thresholding (Gray Scale Image)?

The graythresh function uses Otsu's method, which chooses the threshold to minimize the intraclass variance of the black and whi...

May I get the matlab code for Otsu's method of Thresholding (Gray Scale Image)?

The graythresh function uses Otsu's method, which chooses the threshold to minimize the intraclass variance of the black and whi...

9 years ago | 2

Answered

change matrix from 3D TO 2D

Your matrix has 512*512*3=786432 elements.. to reshape you need to keep the number of elements the same.. That means you cannot ...

change matrix from 3D TO 2D

Your matrix has 512*512*3=786432 elements.. to reshape you need to keep the number of elements the same.. That means you cannot ...

9 years ago | 1

Answered

non-linear equations solution in matlab

syms w0 w1 w2 A0 A1 A2 exp1=(w0^2+w1^2+w2^2)-A0; exp2=(2*w1*(w0+w2))-A1; exp3=(2*w0*w2)-A2 sol=solve(exp1,exp2,exp...

non-linear equations solution in matlab

syms w0 w1 w2 A0 A1 A2 exp1=(w0^2+w1^2+w2^2)-A0; exp2=(2*w1*(w0+w2))-A1; exp3=(2*w0*w2)-A2 sol=solve(exp1,exp2,exp...

9 years ago | 0