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
1k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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.2k
なろう!MATLAB芸人 / Boys be MATLAB Geinin
motorcontrolman
0
2.9k
定電圧振幅楕円に着目した新しい座標系を用いた 永久磁石同期モータ駆動システムの高性能化に関する研究 / PMSM Control Based on a New Coordinate System
motorcontrolman
0
1.6k
Other Decks in Programming
See All in Programming
Jindong: Introducing Declarative Haptics in Compose Multiplatform
l2hyunwoo
0
130
in-process GraphQL のすすめ #ginzajs
izumin5210
4
1.5k
30年振りにコンパイラの定数整数除算を改善した
herumi
9
4.2k
Oxlintはいいぞ(続)
yug1224
1
450
そこに3びきプロダクトがいるじゃろう——生成AI時代における“価値が届かない理由”の構造
kosuket
0
580
「つくるAI」だけではバグは見つからない ~テストに必要な「見つけるAI」を分離させる戦略~
mfunaki
0
180
My Marp Sample
sinoue0108
0
120
Detecting Compromised CI with eBPF and Cilium Tetragon
lizrice
0
260
Pythonの実行はどこまで賢くなったのか? CPythonとPyPyから見る最適化のしくみ
curekoshimizu
3
1.9k
komatsuna「分散システムにおけるバグ分析手法」
komatsunaqa
0
280
Go を使い始めて 2 ヶ月の学び / My first two months with Go
contour_gara
0
380
レビュー履歴をAIに食わせて、 Compose移行を加速するs
shihochan
0
210
Featured
See All Featured
Game over? The fight for quality and originality in the time of robots
wayneb77
1
250
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.8k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Product Roadmaps are Hard
iamctodd
55
12k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
210
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.3k
RailsConf 2023
tenderlove
30
1.5k
Design in an AI World
tapps
1
290
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
740
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
180
Darren the Foodie - Storyboard
khoart
PRO
3
3.7k
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; おまけ