How to have scatter plot of input and output data in NARX space?

1 Ansicht (letzte 30 Tage)
Bidur Poudel
Bidur Poudel am 23 Sep. 2022
Beantwortet: Tushar am 31 Aug. 2023
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

Antworten (1)

Tushar
Tushar am 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.

Kategorien

Mehr zu Thermal Analysis finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by