Why I'm getting error 'Not enough input arguments'?

If you look it in my program, I create same as tutorial on decoding MFD file
In my script it, error activates as line 6.
I'll share my script file and raw data to analyze problem
clc
clear all
close all
m=mdf("Trail_format_checking.mf4")
channelList(m,"CAN_DataFrame","ExactMatch",true)
m.ChannelGroup(4)
m.ChannelGroup(4).Channel(2)
canData = read(m,4)
You can refer my outputs picture of command window.
Error using Practice (line 9)
Not enough input arguments.
Please help me to slove this issue about how to read MDF file.

8 comentarios

What you want to do in this line?
canData = read(m,4)
That read appears to be using https://www.mathworks.com/help/vnt/ug/asam.mdf.read.html and looks potentially acceptable to me.
If you put a breakpoint at that line and run to there, what shows up for
which read(m,4)
See sir I typed same script file as mentioned on website. Here I change only my MDF file name and it works according to there script. But when I put command to read the can-data from that file I got error. Above that line all program is ok and I also getting output.
But at the read time It says "not enough input aurguments"
As per your suggestion, I used your command, "which read(m,4)"
Error using which
Mismatched arguments.
Error in Practice (line 9)
which canData = read(m,4)
I was trying to upload a MDF file so you will try and check program but file format for uploading is not supported. so I you want Input file, I will try to give you by another method.
What shows up for
whos m
methods(m)
which -all read
The Output : whose m ; methods(m)
Which -all read
Finally I solved this. Thanks you to talk with me because of you I never lose a track of finding a solution and finally solution I got it.
Thanks from bottom of heart. Keep support us.
What turned out to be the solution?
@Satyam Taware Can you please tell us how did you solve the issue?

Iniciar sesión para comentar.

Respuestas (0)

Preguntada:

el 11 de Nov. de 2022

Comentada:

el 30 de Nov. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by