Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
SimulinkとMATLABをつなぐ魔法の言葉 / Magical word to subm...
Search
motorcontrolman
October 01, 2020
Programming
990
1
Share
SimulinkとMATLABをつなぐ魔法の言葉 / Magical word to submit MATLAB to Simulink
motorcontrolman
October 01, 2020
More Decks by motorcontrolman
See All by motorcontrolman
MATLAB Homeでのモータ制御MBD開発に向けた“脱獄指南書”/MATLAB Home Prison Break
motorcontrolman
3
2.1k
なろう!MATLAB芸人 / Boys be MATLAB Geinin
motorcontrolman
0
2.7k
定電圧振幅楕円に着目した新しい座標系を用いた 永久磁石同期モータ駆動システムの高性能化に関する研究 / PMSM Control Based on a New Coordinate System
motorcontrolman
0
1.6k
Other Decks in Programming
See All in Programming
AI-DLC Deep Dive
yuukiyo
9
5.6k
Import assertionsが消えた日~ECMAScriptの仕様はどう決まり、なぜ覆るのか~
bicstone
2
180
HTML-Aware ERB: The Path to Reactive Rendering @ RubyKaigi 2026, Hakodate, Japan
marcoroth
0
660
(Re)make Regexp in Ruby: Democratizing internals for the JIT
makenowjust
3
1k
PicoRuby for IoT: Connecting to the Cloud with MQTT
yuuu
2
760
Spec-Driven Development with AI Agents (Workshop, May 2026)
antonarhipov
3
330
tRPCの概要と少しだけパフォーマンス
misoton665
2
260
ハーネスエンジニアリングとは?
kinopeee
13
6.8k
Kingdom of the Machine
yui_knk
2
1.4k
Explore CoroutineScope
tomoeng11
0
170
20260514 - build with ai 2026 - build LINE Bot with Gemini CLI
line_developers_tw
PRO
0
330
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
540
Featured
See All Featured
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
280
How to train your dragon (web standard)
notwaldorf
97
6.6k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
120
The untapped power of vector embeddings
frankvandijk
2
1.7k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
Odyssey Design
rkendrick25
PRO
2
610
Unsuck your backbone
ammeep
672
58k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
540
Utilizing Notion as your number one productivity tool
mfonobong
4
300
Transcript
SimulinkとMATLABをつなぐ 魔法の言葉 @motorcontrolman
@motorcontrolman 1 ・「MATLAB芸」えばんじぇりすと(自称) ・MATLAB芸人(Mathworks半公認) ・好きなToolBox:Control System, Stateflow, Computer Vision
本日紹介するMATLAB芸 2
突然ですが 3 か か
突然ですが 4 か か Simulink MATLAB
S派とM派 (独断と偏見) 5 S派 M派 ・制御屋 ・フィードバック ・組み込み ・非線形 ・統計屋,画像屋
・フィードフォワード ・組み込まない ・線形数学
6 ・両方をディープに使う人は少数 ・本発表はその少数派向け
ところで、SとMの関係 7
実用上におけるSとMの関係 8 実行、停止、ブロック生成、配線、 配置換え、色変え etc… ワークスペース読み書き ごく一部のMATLAB関数のコール
9 絵にすると
10
なんとかならないか? 11
した 12
SimulinkとMATLABをつなぐ 魔法の言葉 SimulinkがMATLABを 服従させるための魔法の言葉
さあ皆で唱えよう 14 ・coder.extrinsic ・evalin ・set もしく setfield
15
要するに 16 おい、あのMATLAB関数使わせろ! (coder.extrinsic) ほぉ、ええデータ持っとるやんけ! (evalin) ほな、それ改ざんさせろ! (set, setfield)
17
何が嬉しいか 18 ・制御設計はSimulinkで、 可視化はMATLABで実施可能 ➡SimulinkとMATLABのいいとこどりできる ➡複数デバイスの入出力関係を可視化できる ・Simulink画面で色々できる ➡MATLAB側の機能を覚える必要性が下がる (例:App designer代わりにDashBoard使う)
・MATLABで作ったクラスをSimulinkから触れる ➡MATLAB資産をSimulinkに流用できる
ネガ 19
ともかく 20 魔法の言葉で素敵なMATLAB/Simulinkライフを
21
22 割り込み関数 displayChara BLE Notify (Aボタンで文字”A”、 Cボタンで文字”C” 送信) ・BLE Readし
文字”A”なら a++; 文字”C”なら c++; ・Simulink APIで GainA に 定数aセット、GainC に 定数cセット Simulink API BLE Write b = ble("m5-stack"); ch = characteristic(b, …); subscribe(ch); ch.DataAvailableFcn = @displayChara; global a; global c; おまけ