A résolu


Number of problems
No, you don't read it wrong: this assignment is to return the number of this problem (and not the problem of this number).

plus de 2 ans il y a

A résolu


Bruh
Return 'bruh'.

plus de 2 ans il y a

A résolu


Mann-Kendall Correlation
Write a function that returns the <http://en.wikipedia.org/wiki/Kendall_tau_rank_correlation_coefficient Mann-Kendall> correlati...

plus de 2 ans il y a

A répondu
I can no longer perform coverage analysis, what could be the problem?
Apart from selecting "Enable coverage analysis", it is needed to specify one out of: Entire System, Referenced Models, Subsystem...

plus de 2 ans il y a | 0

| A accepté

A répondu
fixed point number conversion
You might try the command fi For example, converting the value 1.5 to fixed-point signed, with wordlength 10 and fraction lengt...

plus de 2 ans il y a | 0

A répondu
set_param() - programmatically change param of multiple blocks of the same type (for-loop)
That´s a good solution. For any other case, you might try to first use the command find_system, to then look for the blocks you ...

plus de 2 ans il y a | 0

| A accepté

A répondu
getting error while using feedback
You need to work with model objects, they must be either continuous os discrete with identical sample times. Here, please read ...

plus de 2 ans il y a | 0

A répondu
How to avoid duplicate functions in generated code with embedded coder?
Apart from setting the function packaging to 'Reusable function', could you set the Function name option to 'User specified' and...

plus de 2 ans il y a | 0

A résolu


Solve a System of Linear Equations
*Example*: If a system of linear equations in _x&#8321_ and _x&#8322_ is: 2 _x&#8321;_ + _x&#8322;_ = 2 _x&#8321;...

plus de 2 ans il y a

A répondu
integral sequre error (ISE) via Simulink
Hi Hussein, I think you should take the very final value. For example, if the simulation stops at T=10, go to the row when time...

plus de 2 ans il y a | 0

| A accepté

A répondu
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...

plus de 2 ans il y a | 0

| A accepté

A répondu
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...

plus de 2 ans il y a | 0

A répondu
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 ...

plus de 2 ans il y a | 0

A répondu
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...

plus de 2 ans il y a | 0

A répondu
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!

presque 3 ans il y a | 0

A répondu
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...

presque 3 ans il y a | 1

A répondu
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...

presque 3 ans il y a | 0

A répondu
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...

presque 3 ans il y a | 0

| A accepté

A répondu
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 ...

presque 3 ans il y a | 0

| A accepté

A répondu
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 ...

presque 3 ans il y a | 1

A répondu
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)

presque 3 ans il y a | 0

| A accepté

A répondu
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...

presque 3 ans il y a | 0

A répondu
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/...

environ 3 ans il y a | 0

A résolu


divide by 5

environ 3 ans il y a

A résolu


Mile to Kilometer
x is mile and y is km

environ 3 ans il y a

A résolu


Magnitude of a vector
Given a vector x, what is its magnitude?

environ 3 ans il y a

A résolu


Find square of given number
Find Square of any number

environ 3 ans il y a

A résolu


Volume of Cylinder
Find the volume of a cylinder

environ 3 ans il y a

A résolu


square of a number
find square of a given number

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

Charger plus