Community Profile

Stefan


58 total contributions since 2008

Contact

Contributions in
View by

Responded


Re: arithmetic operations count
With some restrictions you could use this: http://icl.cs.utk.edu/papi/ On this page: http://icl.cs.utk.edu/papi/custom/index....

6 years ago | 6520 views

Posted


Redefine 0/0
You should be careful with such interpretations. But: a=0; b=0; c=a/b; if(isnan(c) && (a==0) && (b==0)) c=0; end Something l...

6 years ago | 8383 views

Responded


Re: Edit mexopts.bat to compile mex file with OpenMP
The LCC does not support OpenMP. See here: http://openmp.org/wp/openmp-compilers/ Regards, Stefan

6 years ago | 12440 views

Responded


Re: distributed computing without the distributed computing toolbox
Maybe this is an alternative: http://www.mb.hs-wismar.de/cea/dp/index.html Regards, Stefan

6 years ago | 1302 views

Responded


Re: about Encryption Quality
Hey, make up two sample images (e.g. 4x3) and place gray values within. Calculate by yourself and let your program do it. Then ...

6 years ago | 2122 views

Responded


Re: Template matching problem
That doesn't seem to be a problem. Just try: x2=x1; Regards, Stefan

6 years ago | 1277 views

Responded


Re: Segmentation violation
Usually this happens in such lines: where the loop starts at zero an stops if less or EQUAL rows. These are rows+1 iterations....

6 years ago | 1813 views

Responded


Re: Mass-Spring-Damper. Index exceeds Matrix Dimensions.
There it is: d( is indexing. Regards, Stefan

6 years ago | 2369 views

Responded


Re: Fast Fourier Transform of data
You could try first with self-made sine signals and verify the correctness of the code. Regards, Stefan

6 years ago | 2775 views

Responded


Re: LSQCURVEFIT bounds
Hi Paul, my question was directed to Maria. Unfortunately I didn't read your post carefully. ;) Regards, Stefan

6 years ago | 5556 views

Responded


Re: LSQCURVEFIT bounds
M;aybe I'm missing something, but why is in lb=[0.05, 0.05, 2, 1e-6, 300]; ub=[2 ,3 , 0.1, 0.5, 600]; at the third position th...

6 years ago | 5556 views

Responded


Re: solving a matrix
Try this: y=(A-q*eye(size(A)))\x' y = Check: (A-q*eye(size(A)))*y-x' ans = Regards, Stefan

7 years ago | 2283 views

Responded


Re: matlab inernal problem
It seems to me the problem lies here: ... in maximum i=rowLen and j=colLen, so you address Ibdr[rowLen*colLen+colLen] and that...

7 years ago | 1757 views

Responded


Re: Help to solve a nonlinear system
Hi there, change this line: XY = lsqnonlin(F,InitialGuess,zeros(2,1),ones(2,1),Options) Regards, Stefan

7 years ago | 1053 views

Responded


Re: double to long int type change in Mex
Ah, right hand side ... to use it for indexing you need to dereference somewhere. There you can cast it to integer. Or simply m...

7 years ago | 8132 views

Responded


Re: double to long int type change in Mex
How about this: void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]){ long int *arg_val; double *arg_re...

7 years ago | 8132 views

Responded


Re: Multiplication of transfer function / transfer function matrices
Hi there, first: Transfer function: ------------- s^2 + 4 s + 4 second: just multiply A*B, but be aware that Matlab is doing p...

7 years ago | 22044 views

Responded


Re: Solving an equation system in Simulink
Maybe using an embedded matlab block? Regards, Stefan

7 years ago | 1058 views

Responded


Re: Solves a system of linear equations given the Cholesky factorization
Hi there, you should read about the cholesky factorization. Try: ans = Regards, Stefan

7 years ago | 4803 views

Responded


Re: simulink error
Hi there, this usually happens if you have a loop in your model, so that a variable is dependent on itself. This will be solved ...

7 years ago | 1994 views

Responded


Re: My project!
Sorry for disappointing you, but your teacher gave you the project that you learn something. Here in germany we have a nice sayi...

7 years ago | 2084 views

Responded


Re: solver problem Simulink
Hi there, I would try a fixed step solver with small time constant. Does it helps? Regards, Stefan

7 years ago | 1577 views

Responded


Re: Nan using lsqnonlin
Hi Maria, I have no idea why this is happening. But I tried the function 'fminsearchbnd' from the file exchange: http://www.ma...

7 years ago | 1688 views

Responded


Re: mex debug with vc++
You are using functions that aren't defined. Make sure they are somewhere in the libraries you're including. Regards, Stefan

7 years ago | 4157 views

Responded


Re: how to switch to active-set (line search) using fmincon
Well, if you are using constrained optimization this is certainly possible. Are you sure it's not the optimum. What is the quest...

7 years ago | 5230 views

Responded


Re: Checking correctness of answer given by fzero
You must be mistaken with the substitution. The answer given is correct. Regards, Stefan

7 years ago | 1861 views

Responded


Re: log of a matrix
How about this one: m1=zeros(5000,1); tic for i=1:5000 end toc x=zeros(5000,1); tic for i=1:5000 end m2=log(x); toc res=sum((...

7 years ago | 2337 views

Responded


Re: How to solve the matrix equation
and help lyap Regards, Stefan

7 years ago | 1437 views

Responded


Re: How to solve the matrix equation
help care Regards, Stefan

7 years ago | 1437 views

Responded


Re: c2d command
REad the meanual. A hint: help ssdata Regards, Stefan

7 years ago | 5490 views

Load more