As per my understanding, you want to create a one class classifier using neural networks.
As neural network classifiers work based on distinguishing two or more classes, it is not possible to train a neural network classifier using data of only one class. However, it’s possible to use neural networks for anomaly detection using only one class data. For example, you can check the Anomaly detection using VAE example.
Alternately, you can also use LSTMs or other sequence networks. The high-level idea is to predict the next state of the system, and then verify if the next state is similar to prediction or not. If the prediction differs from actual state, we label it as anomaly.
You can also use SVM, or create a dataset of non-target samples, and use it to train any of the classification models available in MATLAB.