Question

PWork loses data in S-function

Hello, I want to read out the data (which are structures) from the S-functions parameter dialog at Startup and use them in ever...

2 months ago | 1 answer | 0

Question

Profiling handwritten MEX C-Function

Hello, is there a way to profile a handwritten MEX C-function to determine which part of the code needs the most execution time...

2 months ago | 0 answers | 0

Question

Difference/usage of mwIndex, mwSignedIndex and mwSize in mex C-code

Hello, I'm writing mex C-code and I am wondering how to correctly use the datatypes mwIndex, mwSignedIndex and mwSize. The desc...

3 months ago | 1 answer | 0

Question

Advantages of mwsize (Cross-Platform Flexibility)?

Hello, in the documentation there is the hint to use mwsize rather than int for Cross-Platform Flexibility. What is the actual ...

4 months ago | 2 answers | 0

Question

Increase number of legend entries in Simulink Scope

Hello, I have some vector-valued singals in my Simulink model which I want to display in Scopes. Sadly, the scopes only shows 2...

4 months ago | 1 answer | 0

Question

Discrete S-Function doesn't update inputs

Hello, I have written a C MEX-S-Function for my model. I set the sample time as follows: static void mdlInitializeSampleTimes(...

5 months ago | 0 answers | 0

Question

linsolve with symmetric property set is slower than without

Hello, I want to improve the performance of solving a system of linear equations Ax=b. I have a symmetric A matrix. This matrix...

5 months ago | 0 answers | 0

Question

Warning: Initializing MATLAB Graphics failed.

Hello, I installed MATLAB 2020b on Ubuntu 20.04 LTS. Everytime when I start matlab I get the following warning: Warning: I...

6 months ago | 1 answer | 5

Question

Set hessian function only once for fmincon

I'm calculating the analytic hessian for the interior-point algorithm of fmincon like described here: https://de.mathworks.com/h...

7 months ago | 1 answer | 0

Answered

Solve symbolic equation with derivatives

isolate(eqn,expr) is the function I was looking for.

Solve symbolic equation with derivatives

isolate(eqn,expr) is the function I was looking for.

11 months ago | 0

| accepted

Question

Solve symbolic equation with derivatives

I want to solve an equation with the symbolic math toolbox. This equation also contains derivatives. E.g.: eqn1 = 0 == x + y + ...

11 months ago | 2 answers | 0

Question

Mistake in fft() help (calculation of single-sided spectrum)?

In the fft() help, a single sided spectrum is calculated as follows: Y = fft(X); P2 = abs(Y/L); P1 = P2(1:L/2+1); P1(2:end-1...

1 year ago | 1 answer | 0

Question

Rotation order of quatrotate

Hello, I'm about the function quatrotate. I want to rotate the vector [0,0,1] (means pointing into z-direction of the world fra...

2 years ago | 1 answer | 1