Community Profile

photo

stozaki


Last seen: Today

MathWorks

125 total contributions 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.

Contact

stozaki's Badges

  • Knowledgeable Level 3
  • Speed Demon
  • Creator
  • First Review
  • Revival Level 3
  • Solver
  • First Answer

View details...

Contributions in
View by

Answered
Simulink/StateFlowにおけるバス信号への値の代入について
Atomi様 Stateflowの 場合を添付の例題モデルとして示します。(R2019bにて作成) バス信号を使うためには、先ずバスオブジェクトを定義して下さい。その定義したバス要素に代入する形でモデリング・シミュレーション出来ます。(myBus....

1 day ago | 0

Answered
How to export a simulink project (Not single model) to older version 2019a from newer version 2019b?/
Simulink Project won't export previous version now. This is Simulink Project limitation

2 days ago | 0

Answered
HDL coder mapping error
I look like you are using the ISE web pack. The web pack does not support xc6vlx240t. web pack supports only xclx75T. If you use...

2 days ago | 0

Solved


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

2 days ago

Answered
Simulink Model stuck in running mode indefinitely
@ADITYA You can use color space convesion block. I attached simple example model. Regards, stozaki

3 days ago | 0

Answered
How to create a buffer FIFO, filter and then save in an array values that are between an specific range of values?
I attached modified model you made. unbuffer is just for the description of the block. It is arranged to explain the difference...

3 days ago | 0

| accepted

Problem


Find the index of elements in a string vector
In the vector of v, find the index of elements specified by a. v = ["Lion","Koara","Elephant","Snake","Dog","Cat","Camel"]; ...

4 days ago | 0

Answered
Comparing and locating string values
Please try following command. ret = find(ismember(x,a)) ismember find

4 days ago | 1

| accepted

Solved


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

5 days ago

Answered
How to set output of MATLAB function block as fixed size?
* I attached model and Signal Object file. There are two ways. Set the dimensions in the properties of the output signal. U...

6 days ago | 1

Answered
How can I convert douvle value to int or Integer?
If you convert from double to int32, you can use int32 function. It work casting as int32. intnum = int32(num); int32 int16 ...

8 days ago | 0

Answered
Turn off a Signal for a few seconds and then turning it back on
I attached example model. But it is created by R2019a and backport to R2013b.

8 days ago | 0

| accepted

Answered
Simulink ブロックのすべてのハイライトをクリアする
sugimoto様 対象がモデル内の全ブロックと仮定します。 blk = find_system(bdroot(gcs),'type','block'); % モデル内のブロックをリストします for n = 1:length(blk) % 取得...

8 days ago | 1

Answered
Changing text of subsystem according to textbox
I attached sample model. If you use get_param and disp function, you can use it. for example Gain value of Gain block. v = ge...

10 days ago | 1

| accepted

Answered
Scope not working properly (ie im not getting a straight line if i use const value for a period of time)
This problem is setting of constant block. When sample period of constant block is set 'inf' and constant block only connect to ...

10 days ago | 1

Answered
Simulink library takes more time to open -2016B
You can customize simulink library browser. I attached example script. You can limit the ToolBoxes displayed in the library brow...

11 days ago | 0

| accepted

Answered
Constant input as "iteration limit" for "for loop iterator" block
I attached example model. Please try to use it.

11 days ago | 2

| accepted

Answered
Vector and matrix average
a=[2.4,2,3.4,4.5,5.63]; ave_a = mean(a);

11 days ago | 0

Answered
Solver error in HDL verifier
When you generate and simulation to use the HDL coder, SolverType must set Fixed-Step. Please see following URL HDL Coder cu...

12 days ago | 0

Solved


Bit Reversal
Given an unsigned integer _x_, convert it to binary with _n_ bits, reverse the order of the bits, and convert it back to an inte...

13 days ago

Solved


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

13 days ago

Solved


Create a vector
Create a vector from 0 to n by intervals of 2.

13 days ago

Solved


英語の文章内の母音を取り除くコードを書きましょう。
与えられた英語の文章内の母音を取り除きましょう。 例: 入力 s1 が 'Jack and Jill went up the hill' の場合、 出力 s2 は 'Jck nd Jll wnt p th hll' * (英語版) ...

13 days ago

Answered
how to change the integrator initial conditions?
Hello, ret = find_system(bdroot(gcs),'BlockType','Integrator') for N = 1:length(ret) set_param(ret{N},'InitialCondition...

14 days ago | 0

Solved


行列内の素数の平均をとろう
行列が与えられたときに、その行列内の素数の平均を計算する関数を作成しましょう。 例: 入力の行列が in = [ 8 3            5 9 ] のとき、 出力が 4 あるいは (3+5)/2 のようになり...

14 days ago

Solved


サイコロを作ろう
1から6までの独立かつランダムな数値を返すような関数を作成しましょう。 例: >> [x1,x2] = rollDice(); と入力すると x1 = 5 x2 = 2 のような解を返します。

14 days ago

Solved


二つのベクトルの要素ごとの積の平均を計算しよう
二つの同じ長さのベクトルが与えられたとき、二つのベクトルの要素ごとの積の平均を求めましょう。 例: 二つのベクトル [1 2 3] と [10 15 20] が与えられたとき、 それぞれの要素ごとの積の平均を取ると、 解は 33.33...

14 days ago

Solved


NaN (欠損値) が含まれている行を削除しよう
行列 A が与えられたとき、その行列の中に NaN (Not a number; 欠損値) の要素がある行を見つけ出し、その行を削除しましょう。 例: A = [ 1 5 8 -3 NaN 14 ...

14 days ago

Solved


特定の値がベクトル内に含まれているかを確認するコードを書こう
ベクトル b にあるスカラ値 a が含まれていれば出力として 1 を返し、含まれていなければ 0 を返すような関数を作成しましょう。 例: a = 3; b = [1,2,4]; スカラ値 3 はベクトル b に含まれていない...

14 days ago

Load more