필터 지우기
필터 지우기

3D plotting of ANFIS training data

조회 수: 7 (최근 30일)
farheen asdf
farheen asdf 2015년 9월 10일
편집: Mohammad Abouali 2015년 9월 11일
Hi. I have a 2 inputs each of size [32 16] and 1 output of size [32 16] i want to plot this data in 3D plot. Below is my code. x and y are the inputs while tt1 is the output. I have created a dataset for the system as I want to train it using ANFIS but before training i want to plot the training data for ANFIS.
if true
theta1=0:0.1:pi/2;
theta2=0:0.1:pi;
[tt1,tt2] = meshgrid(theta1,theta2);
x = l1*cos(tt1)+l2*cos(tt1+tt2);
y = l1*sin(tt1)+l2*sin(tt1+tt2);
data1 = [x(:) y(:) tt1(:)];
end

채택된 답변

Mohammad Abouali
Mohammad Abouali 2015년 9월 10일
편집: Mohammad Abouali 2015년 9월 10일
seems
surface(Input1,Input2,Output)
should do the job. and keep Input1/2 and output as their original size, i.e. [32 16]
  댓글 수: 2
farheen asdf
farheen asdf 2015년 9월 10일
I'm not getting a 3D plot from this
Mohammad Abouali
Mohammad Abouali 2015년 9월 11일
편집: Mohammad Abouali 2015년 9월 11일
either issue
view(3)
after the surface command or replace the surface command with surf command as follows:
surf(Input1,Input2,Output)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Fuzzy Logic Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by