Answered

Configuring the output of an S-Function

Hi Vagner, I think it is exactly you already have. Since you put x(1) and x(2) in the S-function output, and these are the unkn...

Configuring the output of an S-Function

Hi Vagner, I think it is exactly you already have. Since you put x(1) and x(2) in the S-function output, and these are the unkn...

4 meses ago | 0

| accepted

Answered

How do I convert descriptor state-space to transfer function?

I think you can just take the A,B,C,D matrices and use ss2tf command to convert it to transfer function. Please look at this do...

How do I convert descriptor state-space to transfer function?

I think you can just take the A,B,C,D matrices and use ss2tf command to convert it to transfer function. Please look at this do...

4 meses ago | 0

Answered

How do i programmatically set parameter override sets to different test iterations for a single test case in MATLB?

About overriding parameters programmatically, you could check the content described in this link: Override Model Parameters in ...

How do i programmatically set parameter override sets to different test iterations for a single test case in MATLB?

About overriding parameters programmatically, you could check the content described in this link: Override Model Parameters in ...

4 meses ago | 0

Answered

Can i run Matlab simulink in windows command line ?

Hi Sreenath, You could start by checking this example shows how to create a test harness programmatically: Programmatically Cr...

Can i run Matlab simulink in windows command line ?

Hi Sreenath, You could start by checking this example shows how to create a test harness programmatically: Programmatically Cr...

4 meses ago | 0

Answered

how to generate 100 random numbers between 5 and -5?

Hey Rayhan, You can try with these lines of code: a = -5; b = 5; N = 100; r = a + (b-a).*rand(N,1); Hope it helps!

how to generate 100 random numbers between 5 and -5?

Hey Rayhan, You can try with these lines of code: a = -5; b = 5; N = 100; r = a + (b-a).*rand(N,1); Hope it helps!

5 meses ago | 0

Answered

How do I use LHS(Latin Hypercube Sampling)?

You could try with: lb = [-5 0]; ub = [10, 15]; x = bsxfun(@plus, lb, bsxfun(@times, X, (ub-lb)); %new sample distribution z...

How do I use LHS(Latin Hypercube Sampling)?

You could try with: lb = [-5 0]; ub = [10, 15]; x = bsxfun(@plus, lb, bsxfun(@times, X, (ub-lb)); %new sample distribution z...

5 meses ago | 0

Answered

Runge Kutta 4 ODE

Hi Valeria, I don't see any system of ODEs (ordinary differntial equations) in equations 4 to 6. For solving ODEs you can foll...

Runge Kutta 4 ODE

Hi Valeria, I don't see any system of ODEs (ordinary differntial equations) in equations 4 to 6. For solving ODEs you can foll...

5 meses ago | 0

Answered

Synchronize Two Timetables (observation and simulation)

Hey Ali, I think so too. I guess you included the folloinwg lines of code to define obs and model timetables before using synch...

Synchronize Two Timetables (observation and simulation)

Hey Ali, I think so too. I guess you included the folloinwg lines of code to define obs and model timetables before using synch...

5 meses ago | 0

| accepted

Answered

Error in port widths or dimensions

If Output port 2 goes to Input port1, then you have a conflict due to the dimensions. Including a signal specification will not ...

Error in port widths or dimensions

If Output port 2 goes to Input port1, then you have a conflict due to the dimensions. Including a signal specification will not ...

5 meses ago | 0

| accepted

Answered

How to programmatically pause and resume UUT Simulation in Test Sequence Block ?

Maybe you can add one or more breakpoints in different steps so to pause in the moment you prefer. Here I include documentation ...

How to programmatically pause and resume UUT Simulation in Test Sequence Block ?

Maybe you can add one or more breakpoints in different steps so to pause in the moment you prefer. Here I include documentation ...

5 meses ago | 1

Answered

How to change C and D matrices of a state-space model?

What about: sys2 = ss(A, B, sys2_C, sys2_D, 'StateName', sys1.StateName)

How to change C and D matrices of a state-space model?

What about: sys2 = ss(A, B, sys2_C, sys2_D, 'StateName', sys1.StateName)

5 meses ago | 0

| accepted

Answered

Simulink simulation too slow

Hey Fadi, There are several reasons that can slow down your simulation. Here I include few possible causes: Speed Up Simulatio...

Simulink simulation too slow

Hey Fadi, There are several reasons that can slow down your simulation. Here I include few possible causes: Speed Up Simulatio...

5 meses ago | 0

Answered

How to control Inputs in Test Manager

Hey, The following link shows an example of how to add excel data to Inputs selection https://www.mathworks.com/help/releases/...

How to control Inputs in Test Manager

Hey, The following link shows an example of how to add excel data to Inputs selection https://www.mathworks.com/help/releases/...

8 meses ago | 0

Solved

Add the positive numbers

Add only the positive numbers of x example: x = [-2 -1 0 1 2 3] the positive numbers are: 1 2 3, so their sum is 6

9 meses ago

Solved

Replace all odd numbers with NaN

Replace all odd numbers in the vector or matrix with NaN. For example, if x = [1 3 4 5 8 11]; then return y = [NaN Na...

9 meses ago

Solved

Transpose the Matrix

Transpose the given matrix, e.g. x=[a b;c d] transpose of x = [a c;b d]

9 meses ago

Solved

Calculate Resistance 2

In this problem, you have to calculate Resistance R of a linear conductor having voltage V across it and current I is passing i...

9 meses ago

Solved

Times 5

Try out this test problem first. Given the variable x as your input, multiply it by five and put the result in y. Examples...

9 meses ago