How to have scatter plot of input and output data in NARX space?
1 次查看(过去 30 天)
显示 更早的评论
Hi everyone,
I have input and output data in .mat file. The output data is obtained when input data is passed through the model. There is relation between input and output data. Now I want to have scatterplot between input data and output data but in NARX space. I have been facing this issue since long time. Could anyone please help me with it?
Thank You
0 个评论
回答(1 个)
Tushar
2023-8-31
Hi Bidur,
I understand that you are interested in plotting a scatter plot in the 'NARX' space. To accomplish this, you will need data representing the inputs, outputs (which you have in the MAT-file), and the 'hidden states' of the NARX network. Hidden state data refers to the values or representations of the hidden state at different time steps or instances in the NARX network.
Here's an example code snippet that demonstrates how to create a scatter plot in the NARX space:
% Example data
inputs = [1, 2, 3, 4, 5];
outputs = [2, 4, 6, 8, 10];
hidden_states = [0.5, 1, 1.5, 2, 2.5];
% Plot scatter plot
scatter(inputs, outputs, 'filled');
hold on;
scatter(inputs, hidden_states, 'filled', 'Marker', 's', 'MarkerEdgeColor', 'r', 'MarkerFaceColor', 'r');
hold off;
% Add labels and title
xlabel('Inputs');
ylabel('Outputs/Hidden States');
title('Scatter Plot in NARX Space');
In this example, the scatter plot is created using the inputs as the x-axis values, outputs as the y-axis values, and the hidden states represented by square markers. You can customize the plot by adding labels and a title to suit your needs.
I hope this example helps you overcome the issue you are facing.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Thermal Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!