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

etwa 14 Jahre vor | 1

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 1

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

etwa 14 Jahre vor | 1

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 1

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 1

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

etwa 14 Jahre vor | 0

| akzeptiert

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 0

| akzeptiert

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

etwa 14 Jahre vor | 1

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 0

| akzeptiert

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 0

Beantwortet
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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 0

| akzeptiert

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

etwa 14 Jahre vor | 0

| akzeptiert

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

etwa 14 Jahre vor | 1

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 1

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

etwa 14 Jahre vor | 1

| akzeptiert

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 0

Mehr laden