Solved


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

2 years ago

Solved


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

2 years ago

Solved


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

2 years ago

Solved


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

2 years ago

Solved


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

2 years ago

Solved


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...

2 years ago

Solved


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 ...

2 years ago

Solved


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₁...

4 years ago

Solved


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...

4 years ago

Solved


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...

4 years ago

Solved


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...

4 years ago

Solved


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:...

4 years ago

Answered
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...

4 years ago | 0

Answered
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...

4 years ago | 0

Answered
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...

4 years ago | 0

Answered
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...

4 years ago | 0

| accepted

Answered
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...

4 years ago | 5

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 0

Answered
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...

4 years ago | 0

Answered
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...

4 years ago | 0

| accepted

Answered
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...

4 years ago | 0

Answered
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...

4 years ago | 0

Answered
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...

4 years ago | 0

Answered
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...

4 years ago | 0

Answered
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...

4 years ago | 1

| accepted

Answered
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...

4 years ago | 0

Answered
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...

4 years ago | 0

| accepted

Answered
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...

4 years ago | 0

Answered
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...

4 years ago | 0

Load more