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

2 months ago | 0

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

2 months 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"]; ...

2 months ago | 0

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

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

2 months ago

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

2 months ago | 1

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

2 months ago | 0

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.

2 months ago | 0

| accepted

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

2 months ago | 1

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

2 months ago | 1

| accepted

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

2 months ago | 1

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

2 months ago | 0

| accepted

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

2 months ago | 2

| accepted

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

2 months ago | 0

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

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

2 months ago

Solved

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

2 months ago

Solved

2 months ago

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

2 months ago | 0

Solved

2 months ago

Solved

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

2 months ago

Solved

2 months ago

Solved

NaN (欠損値) が含まれている行を削除しよう

2 months ago

Solved

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

2 months ago

Solved

ゼロでない要素が一番多い行を探そう

2 months ago

Solved

2 months ago

Solved

2倍してみよう - ここからスタート！

2 months ago

Solved

ベクトル [1 2 3 4 5 6 7 8 9 10]　の作成
MATLABでは,角括弧の中に要素を入れることで、ベクトルを作成できる。 x = [1 2 3 4] また次のようにも書ける（コンマはオプション）。 x = [1, 2, 3, 4] 問題：次のベクトルを出力する関数を作成せよ。...

2 months ago