解決済み


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

約3年 前

解決済み


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

約3年 前

解決済み


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

約3年 前

解決済み


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

約3年 前

解決済み


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

約3年 前

解決済み


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

約3年 前

解決済み


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

約3年 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

解決済み


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年以上 前

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 5

| 採用済み

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

4年以上 前 | 0

| 採用済み

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

4年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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...

5年弱 前 | 0

さらに読み込む