Questions tagged [matlab]
MATLAB is a programming language used primarily for numerical computations. Use this tag for questions regarding communicating or using MATLAB with Arduino. Also consider using other tags such as [programming].
                56 questions
            
            
            
                -1
            
            votes
        
        
            
                1
            
            answer
        
        
            
                71
            
            views
        
        
            
            
            
        Wolfram Mathematica reads but closes stream feeds from Arduino Serial port after a few data sets
                    This is a Wolfram Mathematica / Arduino serial feed problem , but I am posting here just in  for any suggestions on enhancing the Arduino code or the Mathematica notebook.  The original post is here ...
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                1k
            
            views
        
        
            
            
        Updating the firmware of Arduino Mega2560
                    I wanted to connect my Arduino board to MATLAB although it recognized the Arduino board, I kept receiving the error that said:
"Internal error: The initialization of the server code is incorrect.&...
                
            
       
        
            
                0
            
            votes
        
        
            
                3
            
            answers
        
        
            
                1k
            
            views
        
        
            
            
        Problem on Sending float number and multiple float numbers
                    Im having trouble in sending float number and multiple float numbers.
Im currently working on project matlab and arduino mkr1000. The situation is that i want to send float number and multiple float ...
                
            
       
        
            
                1
            
            vote
        
        
            
                0
            
            answers
        
        
            
                68
            
            views
        
        
            
        Simulink Legacy Code Tool - custom Arduino servo write block problem
                    I'm trying to create my own servo.write block in Simulink for Arduino DUE deployment (and External Mode). Before you ask why if there is one available inside the Simulink Arduino Support Package, ...
                
            
       
        
            
                2
            
            votes
        
        
            
                0
            
            answers
        
        
            
                208
            
            views
        
        
            
            
        Simulink resets arduino
                    I am working on servo motors control through serial communication protocol, I am sending data from Simulink to arduino and vice versa, The problem I am getting is that once I open Simulink Servo ...
                
            
       
        
            
                2
            
            votes
        
        
            
                2
            
            answers
        
        
            
                305
            
            views
        
        
            
            
        How to program an Arduino Uno to collect data using a timer interrupt and analyze that data in matlab?
                    I working on a project where I want to collect sensor data (from a sensor) and I want to analyze the first 20 data sample (e.g., find the range, trendline e.t.c.). I know how to compile a timer ...
                
            
       
        
            
                2
            
            votes
        
        
            
                1
            
            answer
        
        
            
                257
            
            views
        
        
            
            
            
        The analog read is not giving the correct waveform as that of an oscilloscope
                    I have code that fetches analog input values from terminals A0, A1 and A2 of an Arduino Mega 2560. When I plot the data, it does not give the desired waveform.
The desired waveform is also measured ...
                
            
       
        
            
                1
            
            vote
        
        
            
                0
            
            answers
        
        
            
                242
            
            views
        
        
            
            
        I2C Communication Matlab - FDC1004
                    I have a ProtoCentral FDC1004 board (datasheet: http://www.ti.com/lit/ds/symlink/fdc1004.pdf) connected to an Arduino. I am then trying to connect to the system via matlab.
I have found the address (...
                
            
       
        
            
                1
            
            vote
        
        
            
                0
            
            answers
        
        
            
                49
            
            views
        
        
            
            
        about receiving float on Atmega32 from matlab
                    I want to receive a float on Atmega32 from matlab. I display the output on an lcd, but i receive 0.000, can any one help me? Please ...
matlab code
s=serial('COM1','BaudRate',9600);
fopen(s)
fwrite(...
                
            
       
        
            
                1
            
            vote
        
        
            
                2
            
            answers
        
        
            
                91
            
            views
        
        
            
        about receiving float on matlab from ATmega32 Avr
                    ****i am using ATmega32 to send float and want to receive it on matlab,i send 4.85 from ATmega32 but on matlab i receive 4.260233679216239e-31...can any one help me..thanks in advance**
**
    //...
                
            
       
        
            
                -1
            
            votes
        
        
            
                1
            
            answer
        
        
            
                73
            
            views
        
        
            
            
        Taking data from main 120V 50/60Hz power
                    How can I take data from my house main power and reconstruct it signal? I used an transformer and an inverter amplifier to low voltage to 5 volts and read it with A0 analog pin, but I got a very ...
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                229
            
            views
        
        
            
        Variable sets to 32767 - MATLAB Arduino
                    I am running out of ideas of what may be causing this problem, and I would appreciate some help identifying anything I am overlooking.
Quick Problem Summary
A variable gets set to 32767 quite often ...
                
            
       
        
            
                1
            
            vote
        
        
            
                0
            
            answers
        
        
            
                169
            
            views
        
        
            
            
        MKR 1000 not found in ports when MKR IMU Shield is connected
                    I am trying to connect my MKR IMU Shield to my MKR1000 by placing the IMU shield in the MKR1000. When I do this, however, the Arduino IDE and Simulink are unable to find the port that my Arduino is ...
                
            
       
        
            
                0
            
            votes
        
        
            
                2
            
            answers
        
        
            
                4k
            
            views
        
        
            
        Serial.availableForWrite versus Serial.flush
                    Is there a difference between the following two line codes?
  
    while (Serial.availableForWrite <= 0) {}
  
versus
  
    Serial.flush()
  
Thanks!
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                285
            
            views
        
        
            
            
        Sending sine wave from MATLAB and reading on Arduino Uno [closed]
                    I am working on timing issues associated with sampling data at high rates and storing it on an SD card (ADC delays, clock drifts and file I/O time). For this experiment, I thought of sending a ...
                
            
       
         
         
         
        