Réponse apportée
How to remove a value from a vectort and revaluate it?
Just editing your code.. maxiter=1000; M=zeros(maxiter,1); M=(0.8+0.8*randn(maxiter,1)); for ii=1:length(...

environ 13 ans il y a | 0

Réponse apportée
What function for writeVideo?
I don't believe that class was available in 2009a. ( I might be wrong..) Do you have VideoWriter doc VideoWriter There i...

environ 13 ans il y a | 0

Réponse apportée
Substituting NaN values of one matrix to another?
Some thing like this; a=[1 2 3;4 1 0 ;1 3 8] b=[4 5 6; 7 8 9; 1 2 3] b(a>3)=NaN; % anything above 3 in a becomes Na...

environ 13 ans il y a | 0

Réponse apportée
Using Log in Matlab
I get the correct result both times A=1000; B=3; M2=[1 2;3 4] M=5*log10(A)-B+M2 M = 13.00 ...

environ 13 ans il y a | 0

Réponse apportée
Need help figuring out what I am doing wrong with my graph
use bar(valueMin:valueMax, distribution(valueMin:valueMax)) with out the 'hist' option

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Having trouble taking the mean of my list
You are redefining the functions mean, min and max. It will not work unless you change the names of those variables.. More h...

environ 13 ans il y a | 1

Réponse apportée
How to convert strings to a matrix
You could also try in='Hello World' splitstring = textscan(in,'%s'); out=splitstring{:}'

environ 13 ans il y a | 0

Réponse apportée
How to change width and height of image?
im = imread('harry.jpg'); info = imfinfo('harry.jpg'); hoyde = info.Height; bredde = info.Width; i...

environ 13 ans il y a | 0

Réponse apportée
How can i find the resolution of an image?
Use 'imfinfo' E.g. info = imfinfo('new1.jpg') info = Filename: [1x95 char] FileModDate: '01-...

environ 13 ans il y a | 1

Réponse apportée
What is this error means? on mac r2012b: "Undefined function 'impulse' for input arguments of type 'double'."
It probably means you not have the Control System Toolbox. Use the ver command to see if you havethe toolbox ver or se...

environ 13 ans il y a | 0

Réponse apportée
For loop element Matrix construction
This video should help: <http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/> You can save the output in a v...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
HOW to import data to MATLAB
try this syt=urlread('http://weather.yahoo.com/austria/vienna/vienna-551801/'); startvalue=strfind(syt,'day-temp-current...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
problem with matrix selection
You will have to clear a row or a column completely to remove row a=[1 2 3;4 5 6; 7 8 9] a(2,:)=[] % remove 2nd row ...

environ 13 ans il y a | 1

| A accepté

Réponse apportée
Why doesn't .3 - .2 - .1 = 0
This should answer your question. Look at the wiki under the section Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero? ...

environ 13 ans il y a | 1

Réponse apportée
I don't have the function 'squareform' which I need to run 'linkage'
squareform is part of the statistics toolbox. You need to buy the statistics toolbox from the MATHWORKS if you do not have it. T...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How to sort the data with respect to a column in matlab
doc sortrows Suppose you want to sort matrix A according to the 15th column you would use out=sortrows(A,15)

plus de 13 ans il y a | 6

| A accepté

Réponse apportée
JUST Take integer value number from decimal value
a=4.321323; out=floor(a)

plus de 13 ans il y a | 2

Réponse apportée
save a vector in an array
try for ii =1:length(date_time_l) [~, ind(ii)] = min(abs(numdates-(date_time_l(ii)))); end

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
i want to know how many times a value repeated in excel
If you know which value you want to find the count of a=[1 2 3 4 5 5 5 6]; % input values numberofFives=sum(a==5)

plus de 13 ans il y a | 0

Réponse apportée
Why was vision.PeopleDetector not installed?
If I remember right vision.PeopleDetector was introduced in R2012b (CVT ver 5.1). You seem to be using R2012a (which came with C...

plus de 13 ans il y a | 2

| A accepté

Réponse apportée
where is the mistake?
You missed the * after 2 in the last terms use throwfun = @(x) x.*tan(a)-((g*x.^2)/(2*(v*cos(a))^2)); ...

plus de 13 ans il y a | 2

| A accepté

Réponse apportée
how to divide the sampled data into segments?
You question is not very concise but I am assuming this is what you need. <http://www.mathworks.com/matlabcentral/newsreader/...

plus de 13 ans il y a | 0

Réponse apportée
how to detect black answered spot in omr sheet!!
The following project might help <http://matlab-omr.sourceforge.net/>

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How to find value parameter in command window from m file matlab?
Edit your code as follows, you missed two close brackets in the pfit(k) line function Pfit=VarProb(p); w0=p(1) ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
building a 3D matrix
All you need to do is for i=1:2; for j=1:3; x(:,j,i)=[i+j+1;j*2 ]; % add the 3rd dimension i en...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Using IF to remove upper and lower boundaries
I think this is what you need if (theta1 > 0.7297 || theta1 < -0.7297) continue end You can enter both conditions...

plus de 13 ans il y a | 0

Réponse apportée
matlab program for particle swarm optimization
The following might be of help to get you started <http://www.mathworks.com/matlabcentral/fileexchange/7506> <http://www.m...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
dividin image in two sectors
Following is thread that shows how to divide an image into 4 parts,, just edit the code some to divide into 2 halves <http://w...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Displaying a 3D DICOM Image Slice
THe following File exchange submission might help <http://www.mathworks.com/matlabcentral/fileexchange/23455-dicom-directory-...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Save variables in a new directory (not current directory)
you have to use save with the entire path.. save('C:\My folder\filename','varname') You could also look at the FULLFILE ...

plus de 13 ans il y a | 8

| A accepté

Charger plus