Respondida
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 ...

alrededor de 14 años hace | 1

Respondida
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...

alrededor de 14 años hace | 0

Respondida
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...

alrededor de 14 años hace | 1

Respondida
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); ...

alrededor de 14 años hace | 1

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

alrededor de 14 años hace | 0

Respondida
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...

alrededor de 14 años hace | 1

Respondida
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 ...

alrededor de 14 años hace | 0

Respondida
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...

alrededor de 14 años hace | 1

Respondida
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 ...

alrededor de 14 años hace | 0

| aceptada

Respondida
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...

alrededor de 14 años hace | 0

Respondida
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...

alrededor de 14 años hace | 0

| aceptada

Respondida
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 _...

alrededor de 14 años hace | 1

Respondida
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...

alrededor de 14 años hace | 0

Respondida
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 ...

alrededor de 14 años hace | 0

| aceptada

Respondida
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...

alrededor de 14 años hace | 0

Respondida
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:....

alrededor de 14 años hace | 0

Respondida
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...

alrededor de 14 años hace | 0

Respondida
code
Looking at your data, and reading over your other posts about this, perhaps the problem is that the spacing between points is to...

alrededor de 14 años hace | 0

Respondida
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...

alrededor de 14 años hace | 0

Respondida
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

alrededor de 14 años hace | 0

Respondida
Write a program in a script file that determines the real roots of a quadratic equation
What do you have so far?

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 0

| aceptada

Respondida
Index of reordered vector
A = [1 2 3 4 5 6] AR = [2 4 1 6 5 3] [junk, P] = ismember(A, AR)

alrededor de 14 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 14 años hace | 1

Respondida
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. ...

alrededor de 14 años hace | 0

Respondida
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...

alrededor de 14 años hace | 1

Respondida
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 ...

alrededor de 14 años hace | 1

| aceptada

Respondida
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...

alrededor de 14 años hace | 0

Respondida
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). ...

alrededor de 14 años hace | 0

Respondida
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...

alrededor de 14 años hace | 0

Cargar más