Can we upload directly a Matlab Script file to arduino for permanent usage

1 回表示 (過去 30 日間)
Hazoor Ahmad
Hazoor Ahmad 2017 年 1 月 27 日
Hello Sir! I have written this script in matlab that use Matlab Supporter Package for Arduino
a = arduino();
s=serial(a.Port);
fopen(s);
fprintf(s,'a');
d='b';
while d~='a'
d = fread(s,1,'uchar');
end
also I have this simple serial communication program of Arduino IDE
void setup() {
Serial.begin(9600);
Serial.println('a');
char a = 'b';
while(a!='a')
{
a = Serial.read();
}
}
void loop() {
}
But Matlab run command cant upload the way like arduino IDE uploads permanently...... Kindly tell me how can i upload program to arduino using matlab for permanent use......

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Support Package for Arduino Hardware についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by