필터 지우기
필터 지우기

3D plotting using Matlab 2012

조회 수: 1 (최근 30일)
farheen asdf
farheen asdf 2015년 10월 7일
편집: Walter Roberson 2015년 10월 7일
Hi. I am training an ANFIS network using inputs and outputs for movements of a robot. I have to plot a 3D plot of the input to the ANFIS network and it is supposed to look like the one showed below. But I can not achieve the results from any of the 3D plots i've used. my code is
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
  댓글 수: 1
Armindo
Armindo 2015년 10월 7일
편집: Walter Roberson 2015년 10월 7일
HI,
%Probably you can use something like this?
surf(x,y,tt1); colormap jet;
% if you whant colorbar and legends
c =colorbar; axis equal xy;
c.Label.String = '\bf \fontsize{15} colorbar units '; % add legend
title('My Title');

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

답변 (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