Solved


Remove the two elements next to NaN value
The aim is to *remove the two elements next to NaN values* inside a vector. For example: x = [6 10 5 8 9 NaN 23 9 7 3 21 ...

4 years ago

Solved


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

4 years ago

Solved


Find nearest prime number less than input number
Find nearest prime number less than input number. For example: if the input number is 125, then the nearest prime number whi...

4 years ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

4 years ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

4 years ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

4 years ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

4 years ago

Question


リアルタイムターゲットからのログの取得
下記コマンドでリアルタイムターゲット上からログを収集しているのですが、 シミュレーション停止後にしかログが得られないかと思います。 シミュレーション中に任意のタイミングでログを得る方法はありますでしょうか。 もし難しい場合、実行停止→ログ収集→再...

4 years ago | 0 answers | 0

0

answers

Question


Simulink Real-Timeでログデータに信号名を含ませる
以下のコードでリアルタイムターゲット(speedgoat)上からログデータを収集しています。 複数信号集録すると、ラベル等ついておらずどの信号か分かりづらいので モデル内の信号名を反映してログを取りたいのですが、方法はありますでしょうか。 tg = ...

4 years ago | 0 answers | 0

0

answers

Question


Sample and Holdブロックと、入力=出力としたTriggeredサブシステムの違い
お世話になります。 タイトルの通りですが、Sample and Holdブロックと、入力をそのまま出力に接続した Triggeredサブシステムの間に違いはあるのでしょうか。 下記の様に単純なモデルでは出力信号は一致している様ですが…。

4 years ago | 1 answer | 0

1

answer

Question


EmbeddedCoderを利用してTI C2000マイコンにModbus RTU スレーブを実装
【動作環境】 ・MATLABバージョン R2019b ・EmbeddedCoder ・TI C2000ハードウェアサポートパッケージ ・LAUNCHXL-F28379D 評価ボード 上記の環境でTIマイコンボードにModbus通信(RTU ス...

4 years ago | 0 answers | 0

0

answers

Question


LaTeXで行列に罫線を入れる,
ライブエディターでLaTeXを使用して画像の様な行列を記述したいのですが、 罫線を引く、および複数の行・列を使用して1字を表記するにはどの様にすれば良いでしょうか。 \begin{array}{c|cc}の様に表記すれば縦の罫線が入るかと思ったので...

5 years ago | 1 answer | 0

1

answer

Answered
評価版アプリ起動でエラーとなる
下記質問でプロキシ設定の際の手順が記載されていましたので、ご参考まで。 <https://jp.mathworks.com/matlabcentral/answers/325298-failure-to-start-simulink>

6 years ago | 1

| accepted