Réponse apportée
Plotting results of three different data sets on same Plot
Depending on the format of the data sets, there are a variety of functions available to import the data. Look at the following ...

presque 14 ans il y a | 1

Réponse apportée
Matlab Source Code
Well the standard question that is always asked in this circumstance is: what have you done so far? What _specific_ MATLAB probl...

presque 14 ans il y a | 0

Réponse apportée
How to create a solid spherical cluster with random distribution of points
centroid = [0 0 0]; Rad = 2; %desired radius n = 100; %or however many points you want phi = 2*pi*rand(n,1); %ph...

presque 14 ans il y a | 1

Réponse apportée
Sorting NaN
You could do something like this: a=[1 2 3;4 5 6;7 8 9;NaN NaN NaN]; a= sort(a,1,'descend'); in = any( isnan(a),2); ...

presque 14 ans il y a | 1

Réponse apportée
Data Upload
Depending on the format of the file, this can vary substantially between trivial and impossible. Do you have any information abo...

presque 14 ans il y a | 0

Réponse apportée
Efficiently setting lower axis limit
You could do it in two lines: xlim_curr = get(gca,'xlim'); set(gca, 'xlim', [0 xlim_curr(2)]); I've tried to do exact...

presque 14 ans il y a | 1

Réponse apportée
Optimizing a 'for' loop
You algorithm isn't quite clear. What is the dimension of mean(M)? Why do you subtract M(i) from it each time? Can you clarify ...

presque 14 ans il y a | 0

Réponse apportée
how to limit arrow length in 3D quiver plot?
For your situation, I would specify the length of the arrows directly, rather than letting Matlab perform the Auto-scaling of th...

presque 14 ans il y a | 1

Réponse apportée
Bounding Box
An image is specified (like any other matrix) as MxNxP, where M is the number of rows, N is the number of columns, and P=1 or 3 ...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
extracting rgb from each block of an image in matlab
What was the original size of the matrix? From your output, it looks like the matrix had a third dimension of 1. For an image to...

presque 14 ans il y a | 0

Réponse apportée
car license plate extraction
Given that you have given us NO details about your problem, I will assume the simplest situation possible: each license plate im...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Virtual Mouse Project
Controlling the mouse pointer is actually a bit difficult, as you need to use the Java Robot class (it's not a Matlab function _...

presque 14 ans il y a | 1

Réponse apportée
Using Euler-Cromer to find the motion of a simple pendulum?
Can you use the ODE solvers built-in to Matlab (something like 'ode45')? If so, that would be the easiest way, and would avoid l...

presque 14 ans il y a | 0

Réponse apportée
Passing extra parameters back through an optimisation function
One way is to wrap the call to fmincon in an outer function, and have the really_time_consuming_function's as a sub-function of ...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
GUI help
Are you saying that your GUI requires a double input and not a char input? If so, you can just convert the string to a double, l...

presque 14 ans il y a | 0

Réponse apportée
plotting
Put m in a loop as well. clear,clc l=.01; for m=0:.01:4; figure; %create a new figure each time for x=0:....

presque 14 ans il y a | 0

Réponse apportée
I need to apply AAM on a face image.
I don't know anything about AAM, but I found this on the File Exchange. Maybe it can help: <http://www.mathworks.com/matlab...

presque 14 ans il y a | 0

Réponse apportée
code
Looking at your data, and reading over your other posts about this, perhaps the problem is that the spacing between points is to...

presque 14 ans il y a | 0

Réponse apportée
Write a program in a script file that determines the real roots of a quadratic equation
Well let's break down the question step by step, with the specified section of the documentation for each. # Get input a, b...

presque 14 ans il y a | 0

Réponse apportée
How to use "str2num" to read the first column of a comma separated data?
str2num isn't really intended for this purpose. Why not use textscan, dlmread, or similar? doc textscan doc dlmread

presque 14 ans il y a | 0

Réponse apportée
Write a program in a script file that determines the real roots of a quadratic equation
What do you have so far?

presque 14 ans il y a | 0

Réponse apportée
Cell Mode
The cells should not disappear. Are the cell division lines (double % signs) still present in the re-opened M-file?

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Index of reordered vector
A = [1 2 3 4 5 6] AR = [2 4 1 6 5 3] [junk, P] = ismember(A, AR)

presque 14 ans il y a | 0

| A accepté

Réponse apportée
how to build an interface between matlab and another software
I don't know anything about CalculiX, but from a quick Google search it seems that CalculiX can be run from the Windows command ...

presque 14 ans il y a | 1

Réponse apportée
from string array to variable names
You can use genvarname to generate variable names. doc genvarname However, you probably don't want to actually do this. ...

presque 14 ans il y a | 0

Réponse apportée
Write a function, using arrays-vectors,' input'& 'fprintf','if' statement', 'end', 'fgetl' etc with good programming practices...like putting comments %
Well if your deadline is approaching, then I can understand why you must be so frustrated! I feel some pity for you--not too man...

presque 14 ans il y a | 1

Réponse apportée
adding same variables to single .mat file
y = NaN(30, 3800000); %pre-allocation for k=1:30, S = load( sprintf('data_%d.mat', k)); y(k,:) = S.x; end ...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
Write a function, using arrays-vectors,' input'& 'fprintf','if' statement', 'end', 'fgetl' etc with good programming practices...like putting comments %
There is no question here, so I will ask one myself: Are the '2 marks' awarded for successful completion of this task transferab...

presque 14 ans il y a | 0

Réponse apportée
real time point tracking and confining it within a predefined boundary
This forum won't just send you MATLAB code without you showing us what you've done so far (as this sounds a bit like homework). ...

presque 14 ans il y a | 0

Réponse apportée
calculate the area
Do you want just the total number of pixels of white? If so, just sum the image (sum all 1's). If you want the area of conti...

presque 14 ans il y a | 0

Charger plus