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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
1
2k
ChromeでローカルLLM
ryu1013
0
200
GraphQL の onError と Nullability のこれから
quramy
0
210
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
14
11k
AIがコードを書いてくれる時代、我々は何を確かめるのか
yosuke_furukawa
PRO
13
5.7k
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
300
はじめてのPLATEAU
nokonoko1203
1
570
学びを記事・スライド・Xへ高速展開する― AI-assisted Learning Loopで回すコンテンツ生成術
ochtum
0
200
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
530
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
200
Coding with AI: How to trust the storyteller (AWS Community Day Adria, Ljubljana 2026)
slobodan
0
140
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
1.6k
Featured
See All Featured
The SEO Collaboration Effect
kristinabergwall1
1
620
Discover your Explorer Soul
emna__ayadi
2
1.3k
A Modern Web Designer's Workflow
chriscoyier
699
190k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
330
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
620
Test your architecture with Archunit
thirion
2
2.5k
30 Presentation Tips
portentint
PRO
1
460
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
My Coaching Mixtape
mlcsv
0
380
Ethics towards AI in product and experience design
skipperchong
2
460
How STYLIGHT went responsive
nonsquared
100
6.4k
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; おまけ