Community Profile

# stozaki

### MathWorks

Last seen: 12 dagen 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.

All

View badges

#### Content Feed

View by

Solved

The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

4 maanden ago

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

4 maanden 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

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

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

4 maanden 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);...

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

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

5 maanden 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'...

5 maanden 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

5 maanden ago | 0

| accepted

Answered
Stateflowの状態遷移表のGUI以外の操作方法

5 maanden ago | 2

| accepted

Answered
cell配列内のサイズを求めたいです．

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

5 maanden 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

5 maanden 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,...

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

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

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

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

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

10 maanden ago | 1

| accepted

Answered
fcnブロックの場所について

10 maanden ago | 1

Answered

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

ongeveer een jaar ago | 0

| accepted

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

ongeveer een jaar ago | 0

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

ongeveer een jaar 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...

ongeveer een jaar ago | 0

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

ongeveer een jaar ago | 0

Answered

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

ongeveer een jaar ago | 0

| accepted

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

ongeveer een jaar ago | 0

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

ongeveer een jaar 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 ...

ongeveer een jaar ago | 0

| accepted