You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: imu_read.m
    path of file: ./repos/nav_matlab/example/hardware/hipnuc_serial_read
    
    the code of the file until where you have to start completion: %% 超核 IMU matlab接收程序
clear;
clc;
close all;
format short;

%% 默认配置
DEFALUT_B
    
function [imu_data, new_data_rdy] = parse_fame(data)    
     imu_data = 0;
new_data_rdy = 0;

persistent current_state; %状态机
if isempty(current_state)
    current_state=0;
end