답변 있음
Counting frequency of occurrence in matrix
x=[22 23 24 23 24 23 24 22 22 23 23 23]; [a,b]=hist(x,unique(x)); out=[b' sum((a),2)]

11년 초과 전 | 3

답변 있음
how to get a image from webcam
You definitely need the image acquistion toolbox. There is this submission on the file exchange don't know if it works <htt...

11년 초과 전 | 0

| 수락됨

답변 있음
How can I create a vector of 10 random numbers?
IS this what you need A=rand(20,1) % 20 random numbers use rand or randn b=randi(20,10,1) % randomly choose 10 ...

11년 초과 전 | 0

답변 있음
How to differ text image from other images
Something like this might get u a start <http://www.mathworks.com/matlabcentral/fileexchange/18169>

11년 초과 전 | 0

답변 있음
Copying and replacing of some values
Another way c=a; for ii=1:length(b) c(find(c==c(b(ii))):find(c==c(b(ii)))+n)=c(b(ii)); end c

11년 초과 전 | 1

답변 있음
How can i calculate the distance to all data points?
If you have the statistics toolbox this might help <http://www.mathworks.com/help/stats/pdist.html> There is also a file e...

11년 초과 전 | 0

답변 있음
A simple question about undefined function error
You are defining it as a function Here is more about declaring functions <http://www.mathworks.com/help/matlab/ref/function.htm...

11년 초과 전 | 0

| 수락됨

답변 있음
How can I combine every Nth row of a matrix into a new matrix using a loop?
Is this what you want? You do not need to use loops % initial data a=[1:10;11:20]' % select every 3rd row out...

11년 초과 전 | 1

| 수락됨

답변 있음
Error between each pixel for two matrices of equal size
Is this what you want A = [0 1 0 0; 1 1 0 0; 0 1 0 1; 0 1 1 0]; A = 0 1.00 0 ...

11년 초과 전 | 0

답변 있음
How do we sort one column of an alpha-numeric table and make the other columns to adjust accordingly?
I guess this is what you need a={9 5 'G' 1 4 'B' 4 3 'E' 2 2 'D' 6 1 'C' 3 0 'I' 0 9 'A' 7 8 'H' ...

11년 초과 전 | 0

답변 있음
what is gcf in set(gcf,'name','Figure Name')?
gcf returns the handle of the current figure <http://www.mathworks.com/help/matlab/ref/gcf.html> To plot data in simulink ...

11년 초과 전 | 0

| 수락됨

답변 있음
how can i print all the data from a computation in one line?
ii=1:3 or ii=[1:3]

11년 초과 전 | 0

답변 있음
How to Reshape a matrix
use b=reshape(a',1,[])

11년 초과 전 | 0

| 수락됨

답변 있음
Installation problem: pathdef.m not found, matlab not installed
Mathworks provides free installation support. Please contact them and they should be able to help you <http://www.mathworks.c...

11년 초과 전 | 0

답변 있음
how to extract features of a segmented image result from K Means clustering using matlab code?
This might be useful <http://www.mathworks.com/matlabcentral/fileexchange/8379-kmeans-image-segmentation>

11년 초과 전 | 0

| 수락됨

답변 있음
how to open the filename in thisstatement "filename = 'output.bmp'"
Do you want to read it or display it.. to read it put it into a variable, (make sure output.bmp is on the path or in curren...

11년 초과 전 | 0

답변 있음
Problem using RESHAPE function
For reshape to work the total number of elements should be divisible by the factor you are reshaping it by. I n your case you...

11년 초과 전 | 1

답변 있음
Need help in plotting with datenum on x-axis
You cannot plot a datestr (i.e. out which is a str) against an integer (long: please try to use a variable name other than long ...

11년 초과 전 | 0

답변 있음
Installation Problems with Matlab 2012a on Ubuntu
Copy the installation to HDD if you are installing from disk: select custom installation You will need superuser privileges...

11년 초과 전 | 0

답변 있음
How to construct a table with several matrices
Or you could form a 3D matrix; where each 3rd dimension is an individual Sigma matrix Sigma1 = [1 0.5; 0.5 1]; Sigma2 = ...

11년 초과 전 | 0

답변 있음
How to access the subfield of the variable(field type) stored in the array
You could try a new variable as newstring.. I'm still not clear as to why you would want to create a new variable from the valu...

11년 초과 전 | 0

답변 있음
reading from a text file
Consider you have your data in file doc.txt, your ouput matrices are x_val,y_val, and z_val fileID = fopen('doc.txt'); ...

11년 초과 전 | 1

| 수락됨

답변 있음
How can i use Fourier Transform??
THis should help <http://www.mathworks.com/matlabcentral/fileexchange/28810-fourier-transform-demonstration/content/fourier_d...

11년 초과 전 | 0

답변 있음
Finding the indices of the elements of one array in another
f=find(ismember(a,b)) output=c(f) % members in c having index of commons in a and b

11년 초과 전 | 0

| 수락됨

답변 있음
Image Load/Rotate/Crop and Collect Data
The imtool does the first two point very well. You will have to code for the rest.. doc imtool <http://www.mathworks.co...

11년 초과 전 | 0

| 수락됨

답변 있음
matlabpool local files
Did you validate your SGE configuration? Do you have the SGE-specific submit files on the path? These submit function files are ...

11년 초과 전 | 0

| 수락됨

답변 있음
take line sum of part of matrix
A = [1, 2, 54, 4, 5, 6; 1, 2, 88, 4, 5, 6; 1, 2, 0, 4, 5, 6; ]; b = [5;2;6]; for ii=1:length(b) sumA(ii)=sum(A(ii,1:...

11년 초과 전 | 0

답변 있음
Invalid Audio File, too many samples
From, a cursory glance: you have initialized i=0 There is no index of 0 in matlab and so it cannot play (0-15) range Also ...

11년 초과 전 | 1

답변 있음
how to measure distance between points in X using interactive mouse
try the imdistline fucntion <http://www.mathworks.com/help/images/ref/imdistline.html>

11년 초과 전 | 2

답변 있음
preallocate vector or not
Preallocation helps speed up code and reduces memory fragmentation.. The following link will help you understand how.. <ht...

11년 초과 전 | 2

더 보기