How to have scatter plot of input and output data in NARX space?
1 view (last 30 days)
Show older comments
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 Comments
Answers (1)
Tushar
on 31 Aug 2023
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 Comments
See Also
Categories
Find more on Thermal Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!