A résolu


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

presque 3 ans il y a

A résolu


Find max
Find the maximum value of a given vector or matrix.

presque 3 ans il y a

A résolu


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

presque 3 ans il y a

A résolu


Inner product of two vectors
Find the inner product of two vectors.

presque 3 ans il y a

A résolu


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

presque 3 ans il y a

A résolu


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

presque 3 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

presque 3 ans il y a

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₁_ + _x₂_ = 2 _x₁...

plus de 4 ans il y a

A résolu


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

plus de 4 ans il y a

A résolu


Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

plus de 4 ans il y a

A résolu


Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

plus de 4 ans il y a

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

plus de 4 ans il y a

Réponse apportée
how to add rising edge clk like this in stateflow?
Hi Le, You can add the rising edge port on chart block as below. 1. Set "input event" to the variable type 2. Open "Proper...

plus de 4 ans il y a | 0

Réponse apportée
How to adapt a Field Weakening control in the simulink model in a PMSM system?
Hi Varun, Maybe the sample model shown below is useful for you. In the Simscape Electrical library, there is "PMSM Field-Weaken...

plus de 4 ans il y a | 0

Réponse apportée
Is there any simple PI controller for Id and Iq current for current control of PMSM motor
Hi Varun, How about the sample model below. It is not so simple model but you can see how to use "Current Controller Block" and...

plus de 4 ans il y a | 0

Réponse apportée
Error when using spice model for MOSFET for Basic Buck w/ PI control
Hi Christine, When this error occurs, it maybe is valid to enable the filter of Simulink-PS Converter block. By enabling the fi...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
SIMULINK Blue and black components
Hi LightFury, They are the blocks for electrical modeling but different domain blocks, that why you can't connent them directry...

plus de 4 ans il y a | 5

| A accepté

Réponse apportée
raspberrypi_modbus_masterのモデルをコマンドで起動しようとしてもエラーが出てしまう
小杉様 ご質問ありがとうございます. おそらく、コマンド中のシングルクオーテーション、もしくは括弧が全角となっているために生じるエラーかと思われます. 下記のように半角のものに変更した状態でお試しください. 正:open_system('r...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
simulink上でのラズパイとカメラ動作について
AK様 ご質問頂きありがとうございます. ハードウェアとの接続が正しく確立できていない可能性があります.下記の図を参考に正しいIPアドレスが設定されていることなどをご確認頂けますでしょうか. また、シミュレーション実行ボタンではなく、「監視と調整...

plus de 4 ans il y a | 0

Réponse apportée
What environment temperature should I collect the step response data under?thanks.
Hi Shawn, I understood that this problem is changing plant dynamics due to plant's temperature and it makes the control difficu...

plus de 4 ans il y a | 0

Réponse apportée
Simulink vs Stateflow application for sensor
Hi Hidd, Using Stateflow, you can make Sequence control very easily. (for example, schedulers, fault management systems, and su...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Integration step Issue in Simulink execution
Hi Hugh, Your simulink model might be stiff-model. The stiff model is a difficult model to simulate and the calculation speed o...

plus de 4 ans il y a | 0

Réponse apportée
How to split a line in Simulink?
Hi Moritz, I don't know how to delete only the part of the signal line as you mentioned. But you can do the similar thing by th...

plus de 4 ans il y a | 0

Réponse apportée
How to change evaluation time of a Matlab Function in Simulink
Hi Fernando, Although I didn't see your model and so I couldn't find the reason of the problem, I described the tips for this p...

plus de 4 ans il y a | 0

Réponse apportée
How Can I add feedbacks on control inverted pendulum with LQR?
Hi Oguzhan, The value actually measured and obtained corresponds to Y. Therefore, if you get position and velocity values of th...

plus de 4 ans il y a | 0

Réponse apportée
How to use stateflow inside a simulink closed loop?
Hi Moritz, I understood that your question is about the cause of the difference output between the two logics in attached model...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
The linearization input/output port specification of the 'statespace_compensation/Bode Plot' block resulted in linear system with a value of zero.
Hi Vasilica, The main reason of this warning is that this model has discontinuous non-linearity. In making not only bode-plot b...

plus de 4 ans il y a | 0

Réponse apportée
Model a Torque converter from fundamental equations using standard simulink blocks
Hi Aditya, I think the demo model of "sf_car" will be helpful. (Please enter "sf_car" in the command window.) There is a torque...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Does anyone know how to fix this?
Hi Tony, It seems that different data from expectedis appeared during "first step" in simulation. (Models that do not require c...

plus de 4 ans il y a | 0

Réponse apportée
How to build a delta-connected PMSM simulink model or what's the output of PM Synchronous Motor mean 'R' 'C'?
Hello 英奇, Thank you for your asking. First, you should convert R and L in the delta connection to the those in the Y connect...

plus de 4 ans il y a | 0

Charger plus