Community Profile

photo

stozaki

MathWorks

Last seen: 2 days ago Active since 2019

DISCLAIMER: Any advice or opinions posted here are my own, and in no way reflect that of MathWorks.

NOTE: Please do not send me individual messages or questions, as I will not be able to respond to them. If you have technical questions about MATLAB, please use the various resources on MATLAB Central. If you have a valid license, you can also use Technical Support.

Statistics

All
  • Treasure Hunt Participant
  • 6 Month Streak
  • MATLAB Central Treasure Hunt Finisher
  • First Submission
  • GitHub Submissions Level 1
  • Knowledgeable Level 3
  • Speed Demon
  • Creator
  • First Review
  • Revival Level 3
  • Solver
  • First Answer

View badges

Content Feed

View by

Answered
Simulink Transport Delay Block parameters error
Ogawaさま こんにちは。問題解決されたでしょうか? Simulink起動プログラムとおっしゃられているのは、PreLoadFcnのことでしょうか? 各々のパラメータ値が定義されていないからではないでしょうか? PreLoadFcnに関す...

2 months ago | 0

Answered
How to obtain a Matrix as output from a 3-D LookUpTables?
Hi, How about using the reshape block to convert 1x784 to 28x28? reshape

2 months ago | 0

| accepted

Answered
Bug: Unable to set PI initial condition data type by value
Hi, This warning is normal behavior. Not a bug. This is because the configuration parameter "UnderSpecifiedDataTypeMsg" is s...

2 months ago | 0

Answered
Is rsqrt the same as Fast inverse square root?
Hi, The Simulink sqrt block supports rsqrt. The algorithm is Newton-Raphson, so it can be considered the same as the one des...

3 months ago | 0

| accepted

Answered
Find average of an array for values > 0
Hi, What about the following processing? data = [1 2 10 -38 -7 2 8 10 -5 1 0 -5 37]; % example data idx = find(data > 0);...

3 months ago | 0

Answered
How to refresh selected model block via command line? (not the Ctrl+K function)
Hello, You can update the model block by using the following function. Simulink.ModelReference.refresh Simulink.ModelRefe...

3 months ago | 1

Answered
Fixed point to floating-point conversion with Fixed-Point Tool
The Fixed-point tool is used to convert from floating point to fixed point. Therefore, you do not need to use the Fixed-point to...

3 months ago | 0

Answered
How do I search a Simulink model for a string in all element properties?
Hi, Are you effective the following command? s = 'SearchString'; sys = gcs; ret = unique(find_system(sys,'BlockDialogParams'...

3 months ago | 0

| accepted

Answered
How can I make a JK Flip-Flop with clear and preset?
Hello, J-K Flip Flop is included in Simulink Extras. You can use it. J-K Flip-Flop

3 months ago | 0

| accepted

Answered
Stateflowの状態遷移表のGUI以外の操作方法
大貫様 Statelofo APIを使うことで、Stateflowエディタ(GUI上のマウス操作)を使わずに、Stateflow状態遷移図を記述することはできます。 ただし、通常マウスで操作しているので気にならないステートや遷移線の配置ですが、St...

3 months ago | 2

| accepted

Answered
cell配列内のサイズを求めたいです.
池田様 こんにちは。配列のサイズを求めるには、size関数が使えると思います。 ただし、今回は1x1のcellに5x1の配列を入れているので、次のようになると思います。 A={[1;2;3;4;5]} s = size(cell2mat(A),1)...

3 months ago | 0

Answered
How to determine source block of an input port in Simulink?
Hi, 1. Get the port handle of the target block. (in this example, MATLAB Funciton) 2. Get the line handle of the connected s...

3 months ago | 1

Answered
How to make a={'1','2','3','4'} to b={'1234'}
Hi, a = {'1','2','3','4'}; b = cellstr(replace(strjoin(a),' ','')) cellstr replace strjoin

3 months ago | 1

Answered
Turn of slider switch automatically
Hi, The Slider Switch button does not automatically switch ON / OFF. A user switches ON / OFF with a mouse click. Therefore,...

3 months ago | 0

Answered
How to compare a value over time in Simulink
Hi Trevor, The processing you want to perform is not in the Simulink standard block. So I modeled the function you want to dete...

4 months ago | 1

| accepted

Answered
Modify the storage class in the data dictionary programmatically
Editing a storage class is editing the properties of a Simulink Signa Object. To do this, edit the Simulink Signal Object progr...

4 months ago | 1

| accepted

Answered
change fixed point number signedness
Hi scc28x, >> b1 = fi(3,1,3,0) b1 = 3 DataTypeMode: Fixed-point: binary point scaling Signedn...

8 months ago | 0

Answered
function block with changeable input
Hi haluk zorluoglu, We cannot increase the number of ports in the function block. However, we can vectorize the input and enter...

8 months ago | 0

Answered
Enable Access to Base Workspace - Matlab 2016a
In R2016a, the base workspace and Simulink Data Dictionary are only available exclusively. This is a functional specification o...

8 months ago | 1

| accepted

Answered
fcnブロックの場所について
小杉様 こちらのブロックはR2020bから削除されております。リリースノートに記載がございます。 今後はMATLAB Functionブロック内部で数式記述を行っていただくか、Simulinkの標準ブロックを組み合わせてモデリングを行ってください。...

8 months ago | 1

Answered
外部コマンドの実行で、複数のコマンドを実行する方法
Yuki Koyama 様 cd はwindowsのシステムコマンドでなくとも、MATLABのコマンドでサポートされています。 1行目はMATLABのコマンドで実行しては如何でしょうか? cd : 現在のフォルダーを変更する stozaki...

11 months ago | 0

| accepted

Answered
Scopeのビューアーを重ねずに表示する
Kohei Sendo様 Scopeブロックのメニューの「表示」➔「レイアウト」を選択し、3行1列を選択します。 念の為モデルを添付いたします。 stozaki

11 months ago | 0

Answered
スクリプトでブロックの最前面と最背面を設定することは可能ですか?
Yonasawa様 はい、可能です。 ブロックの設定はset_param関数を使用します。 「最前面」「最背面」はどちらも共通のブロックプロパティとなっており、BackgroundColorとForegroundColorの値を指定します。例えば...

11 months ago | 0

Answered
I cannot open slx file. how can i open this file?
Hi Sion, Your slx filename contains spaces and round brackets. They cannot be used as slx filenames. Remove those strings fro...

12 months ago | 0

Answered
Simulinkで作成したPWM信号をCSVで出力するにはどうしたらいいですか?
Shogo Tanaka様 モデルを開くと、「モデル設定」でSimulink.SimulationOutputが設定されているので、その結果を使ってみます。 モデルを開いてシミュレーション実行した後、次のスクリプトを実行すると、.csvファイルが出...

12 months ago | 0

Answered
複数ステップの遅延
amemori 様 指定したサンプル数だけ遅延するブロックとしてDelayブロックというものがございます。 こちらで対応頂けると思います。 stozaki

1 year ago | 0

| accepted

Answered
GitHub上で作成したコードをMatlab上で読み込む方法
kanako machii様 GitHubからデータをクローンまたはPullされたいようなので、何れかご参考までに。(2の方法は手前味噌で申し訳ございません) 【クローン作成】 GitHub(リモートリポジトリ)上に存在しているMATLABのプロ...

1 year ago | 0

Answered
Resizing model window in Simulink
You can choose to minimize the gray pane by right-clicking on the gray pane.

1 year ago | 0

Answered
Flip-Flop simulation
If you just want to switch the boolean value, you can do it with the ManualSwitch block. You can double-click the Manual Switch ...

1 year ago | 0

| accepted

Answered
Why doesn't signal units propagate through blocks?
Hello Proglet, There are two inputs. One has the unit N and the other has the unit m. The unit Nm is obtained as the result o...

1 year ago | 0

| accepted

Load more