Community Profile

# stozaki

### MathWorks

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

All

#### 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 months ago

Simulink Transport Delay Block parameters error

4 months ago | 0

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 months ago | 0

| accepted

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 months ago | 0

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

5 months ago | 0

| accepted

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 months ago | 0

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 months ago | 1

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 months ago | 0

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 months ago | 0

| accepted

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 months ago | 0

| accepted

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

5 months ago | 2

| accepted

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

5 months ago | 0

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 months ago | 1

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 months ago | 1

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 months ago | 0

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 months ago | 1

| accepted

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 months ago | 1

| accepted

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

9 months ago | 0

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 months ago | 0

In R2016a, the base workspace and Simulink Data Dictionary are only available exclusively. This is a functional specification o...

10 months ago | 1

| accepted

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

10 months ago | 1

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

1 year ago | 0

| accepted

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

1 year ago | 0

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

1 year ago | 0

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

1 year ago | 0

1 year ago | 0

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

1 year ago | 0

| accepted

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

1 year ago | 0