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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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.1k
なろう!MATLAB芸人 / Boys be MATLAB Geinin
motorcontrolman
0
2.8k
定電圧振幅楕円に着目した新しい座標系を用いた 永久磁石同期モータ駆動システムの高性能化に関する研究 / PMSM Control Based on a New Coordinate System
motorcontrolman
0
1.6k
Other Decks in Programming
See All in Programming
LLM本来の能力を解き放つサンドボックス技術とAI民主化への適用
yukukotani
3
4.3k
Snowflake Summitでの新機能 CoCo / CoWork / snowflake-summit-2026-overall-what-new-coco
tatsuhiro
1
150
A2UI という光を覗いてみる
satohjohn
1
140
Mujeres en SEO Summit 2026 - Greatest Disaster Hits en Web Performance
guaca
0
190
AIとASP.NET Coreで雑Webアプリを作った話
mayuki
0
660
さぁV100、メモリをお食べ・・・
nilpe
0
140
Strategic Design in the Frontend: Moduliths & Micro Frontends @DDDEurope
manfredsteyer
PRO
0
110
キャリア迷子上等 ─ "ない道"は自分で作ればいい
16bitidol
3
2.1k
Claspは野良GASの夢をみるか
takter00
0
200
Vue × Nuxt × Oxc どこまで使える?実運用の現在地
andpad
0
270
C# and C++ Interoperability - cho-dotnetnew
harukasao
0
260
Semantic Version 単位で戦略を柔軟に変えて、パッケージアップデートを自動化する
daitasu
1
260
Featured
See All Featured
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
440
The untapped power of vector embeddings
frankvandijk
2
1.8k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
210
AI: The stuff that nobody shows you
jnunemaker
PRO
8
720
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Darren the Foodie - Storyboard
khoart
PRO
3
3.4k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.3k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
970
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
200
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
230
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; おまけ