Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
SimulinkとMATLABをつなぐ魔法の言葉 / Magical word to subm...
Search
motorcontrolman
October 01, 2020
Programming
1.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
3k
定電圧振幅楕円に着目した新しい座標系を用いた 永久磁石同期モータ駆動システムの高性能化に関する研究 / PMSM Control Based on a New Coordinate System
motorcontrolman
0
1.6k
Other Decks in Programming
See All in Programming
Getting Started with Vibe Coding
miccheng
0
190
Web Framework Benchmark Battle 2026, Any%
a_matsuda
3
3.1k
オーケストレーション記述言語 Katari
yukikurage
0
240
DroidKnights 2026 Android A2UI Jetpack Compose 기반의 안전한 AI UI 렌더링 - 박제창
itsmedreamwalker
1
200
우리의 Nitro Modules는 당신의 Turbo Modules보다 아름답다
l2hyunwoo
0
250
Materialが消えた日 〜真っ白なFlutterキャンバスにRenderObjectで絵を描く〜
umigishiaoi
0
150
Coding with AI: How to trust the storyteller (AWS Community Day Adria, Ljubljana 2026)
slobodan
0
140
flutter_test のその先へ — Flutter アプリの LLM 機能に「評価」という品質保証を
kosukesaigusa
0
200
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
600
クラウドエージェントは、 何がそんなに便利なのか / what makes cloud agents so useful
rkaga
5
790
あなたの await、OS まで届いてる? strace で覗く JavaScript の非同期
hasutosasaki
1
2.2k
Moscow Python Meetup №112. Как поселить ИИ агентов в event driven архитектуре
moscowdjango
PRO
0
110
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
400
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
460
Building an army of robots
kneath
307
47k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.7k
The Pragmatic Product Professional
lauravandoore
37
7.5k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
WENDY [Excerpt]
tessaabrams
14
40k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
1
300
Code Reviewing Like a Champion
maltzj
529
40k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
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; おまけ