Gensurf / Axis Limitations

조회 수: 3(최근 30일)
Fatih Yigit
Fatih Yigit 2022년 7월 9일
댓글: Fatih Yigit 2022년 7월 10일
Hello everyone;
I am using Fuzzy Toolbox. When I want to see the figure that represents the surface, relevant surface generated by the following code limits the z axis narrower than my output. e.g [0 2] şnstead of [0 5].
zlim [0 5] doesn't work for gensurf.
Would you please help?
Thanks in advance.
++
clc
clear all
close all
a = readfis('InventoryManagementv2');
SafetyStockOutput = evalfis(a, [1 1 0.85])
f= gensurf(a);
++

채택된 답변

Sam Chak
Sam Chak 2022년 7월 10일
This should do the trick that you desire:
fis = readfis('InventoryManagementv2');
[X, Y, Z] = gensurf(fis);
surf(X, Y, Z)
zlim([0 5])
  댓글 수: 1
Fatih Yigit
Fatih Yigit 2022년 7월 10일
Thanks a lot. It workedç

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

추가 답변(1개)

Simon Chan
Simon Chan 2022년 7월 9일
Try this:
set(gca,'ZLim',[0 5])
or
zlim([0 5]); % with bracket

Community Treasure Hunt

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

Start Hunting!

Translated by