フィルターのクリア

Struct contents reference from a non-struct array object.

3 ビュー (過去 30 日間)
sarath chandrika balaji
sarath chandrika balaji 2017 年 10 月 11 日
回答済み: Jan 2017 年 10 月 11 日
clear;
close all;
%generate training data (input and target)
p = importdata('Training_dataset.csv');
t = importdata('Target.csv');
weight=0.5;
biases=0.1;
%Define and train Backpropagation Network
net = trainbr(p,t);
plot(p,t,'*r');hold;
%generate test data
p1 = csvread('Testing_dataset');
%test network
y = sim(net,p1);
plot(p1,y,'ob');
legend('Training','Test');
xlabel('input, p');
ylabel('target, t');
  1 件のコメント
Jan
Jan 2017 年 10 月 11 日
I have edited your question: Select the code with the mouse an press the "{} Code" button by your own the next time. Thanks.
If you post the complete error message, the readers do not have to guess, where the problem occurs.

サインインしてコメントする。

回答 (1 件)

Jan
Jan 2017 年 10 月 11 日
I guess, that the error occurs in trainbr. Read the documentation for this command again. The first input is expected to be a net object. What is the output of:
p = importdata('Training_dataset.csv')
?

Community Treasure Hunt

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

Start Hunting!

Translated by