Answered
How can i erase the word "out." at the beginning of the variable name in block "to workspace"
Hello David, The default configuration settings are to save to a single Simulink.SimulationOutput object. The script to cance...

alrededor de 1 año ago | 1

| accepted

Answered
MATLABコマンドラインから印刷フレームを使用してsimulinkモデルブロック図を印刷することはできますか
yusuke endo 様 モデル参照毎のブロック線図に対して1枚のpdfファイルを生成するプログラムを考えてみました。 R2020aの環境を使用し、手元では期待されるpdfファイルが出力されることを確認しております。 2通りの方法が考えられたの...

alrededor de 1 año ago | 0

| accepted

Answered
Can I uninstall my older versions of MATLAB and still have working newest MATLAB version?
Hello Katarina, Yes it works. Below is a similar answer Will Matlab 2017b work without Matlab 2017a? stozaki

alrededor de 1 año ago | 0

Answered
I cannot see the linear analysis menu in R2019b
Hello James, Since MATLAB R2019b, Simulink Toolstrip has been adopted instead of Simulink Menu. Simulink Toolstrip > APPS ta...

alrededor de 1 año ago | 1

| accepted

Answered
How to set 1D Table characteristics from script
Hello Lila, If the block path (character) or block handle (numerical value) of the target 1D LookupTable block is "blkName" ,...

alrededor de 1 año ago | 0

| accepted

Answered
sim関数のMATLAB 式を評価するワークスペースについて
KO様 sim が記述される関数が呼び出される”親となる関数”のワークスペースが、"parent" となります。 シンプルな具体例としては次のような形となります。(AはSimulinkモデルで使用されていて、ベースワークスペースで定義されていないパ...

alrededor de 1 año ago | 0

| accepted

Answered
My Simple model does not run when my time is set to 10 seconds
Hello Jorje, Probably because the sample time value in your constant block is the default value. The constant block sample t...

alrededor de 1 año ago | 0

| accepted

Answered
download file from a url
Hello Xuewei, Your script seems to have invalid websave arguments. Please try following script. websave('xxx.csv','https://...

alrededor de 1 año ago | 0

| accepted

Answered
Simulink Plot from Command Window
Hello Aaron, Please try as follows. % execute model simulation and store the result in y. y = sim('HW1_number10'); % acqui...

alrededor de 1 año ago | 0

| accepted

Answered
ライセンス番号の取得方法
鶴﨑さん ライセンス番号を取得するには licence という関数を使用します。 MATLABを起動するとコマンドウィンドウというプログラムを入力・実行するペインがあります。 コマンドウィンドウでlicence関数を実行するには、次のように行いま...

alrededor de 1 año ago | 1

Answered
Add value to previous value while using a for loop
Hello Vance, Try adding the following to your script. COMTOT is the cumulative sum. COMTOTALL = cumsum(CoM_tot); COMTOT = C...

alrededor de 1 año ago | 0

Answered
テストハーネスを使用するために必要なライセンスをご教示ください。
michihiroさん Simulink Test のLicenceが追加で必要となります。 手元でSimulinkモデルのメニューからテストハーネスを選択し、テストハーネスを作成時に使用したLicenceを以下のコマンドで確認しました。matla...

alrededor de 1 año ago | 0

Answered
evalin data dictionary design data unable to use parameters on rhs of expression
The "evalin" function for data dictionary section does not support the expressions. The workaround can be replaced by the follo...

alrededor de 1 año ago | 0

Answered
Get expected DataType for Inherit:auto port
Hello Iliya, Simulink blocks output data type are determined when you compile your model. To get the data type property at t...

alrededor de 1 año ago | 0

| accepted

Answered
Read and save multiple excel files into one spreadsheet in one excel file
Hello addy, I attach a simple sample script. Please save all files in the same folder and run the script. Regards, stoza...

alrededor de 1 año ago | 0

| accepted

Answered
Unable to add block in Simulink 2016 with add_block command
Hello Ruhi, Please try to edit line 7 as follows : Before : add_block('built-in/Inport', ['/Test' '/IN1'],'Position',[140 9...

alrededor de 1 año ago | 0

| accepted

Answered
save workspace BUT with another name!
please refer an following URL save save filename save ('filename') For example, if you want to save it as 'test', you would ...

más de 1 año ago | 1

| accepted

Submitted


SetInheritedPortName-Simulink-Utility
To set name of the port block and propagation signal name.

más de 1 año ago | 1 download |

Solved


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

más de 1 año ago

Solved


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

más de 1 año ago

Answered
Local variable created as global in code.
In the flowchart, initialize as a condition action before the condition.

más de 1 año ago | 0

Answered
How to plot multiple graphs from Simulink in Matlab
The workspace stores only the latest results, but if you use the signal log, the Simulation data inspector stores all the result...

más de 1 año ago | 0

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

más de 1 año ago

Answered
Problems encountered when converting simulink model including look-up table to hdl code
please try to use my modified model.

más de 1 año ago | 1

| accepted

Answered
Where is the declaration and definition of C code corresponding to min,max,abs blocks
math.h is standard library. So, mathematical functions are defined in math.h. https://en.wikipedia.org/wiki/C_mathematical_func...

más de 1 año ago | 0

Answered
Assign fields to structure array in Simulink
You can use MATLAB Function as following. I attached example model and .mat included struct data.

más de 1 año ago | 0

| accepted

Answered
How to round only two values after decimal point
You can use 'round' block and 'subtract' block.

más de 1 año ago | 0

Solved


Back to basics 3 - Temp Directory
Covering some basic topics I haven't seen elsewhere on Cody. Return a string that is the path to the system's current temp di...

más de 1 año ago

Solved


Back to basics 15 - Benchmark
Covering some basic topics I haven't seen elsewhere on Cody. Return an array of the benchmark values for MATLAB.

más de 1 año ago

Solved


Number of toolboxes?
Return a number equal to the number of toolboxes available to the Cody solvers.

más de 1 año ago

Load more