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

14 years ago | 1

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

14 years ago | 0

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

14 years ago | 1

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

14 years ago | 1

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

14 years ago | 0

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

14 years ago | 1

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

14 years ago | 0

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

14 years ago | 1

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

14 years ago | 0

| accepted

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

14 years ago | 0

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

14 years ago | 0

| accepted

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

14 years ago | 1

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

14 years ago | 0

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

14 years ago | 0

| accepted

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

Answered
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

14 years ago | 0

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

14 years ago | 0

| accepted

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

14 years ago | 0

| accepted

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

14 years ago | 1

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

14 years ago | 0

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

14 years ago | 1

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

14 years ago | 1

| accepted

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

Load more