MATLAB supports NI-DAQmx only when using MATLAB with the Data Acquisition Toolbox. This support allows you to both acquire and analyze your data using just MATLAB. Support includes M-Series, E-Series, USB, and other NI hardware.
This code example shows you how to acquire and plot data in MATLAB in 10 commands.