How to plot 3D of 3D dataset and using evalfis function?

7 views (last 30 days)
Dear MATLAB users,
1- suppose I have a 3D dataset ([x, y, z]). In which the 'z' is the output and the x and y are the independent varaibels. How can I plot it? z is not an explicit function and suppise we've found z via experimentation. (I tried surf, mesh, plot3. But none of them worked).
2- Second question is, suppose that z will be generated using anfis function (.fis):
x = [];
y = [];
z = evalfis([x, y], readfis('... .fis')),
I need to plit it as well but I see problems/erros.
Any ideas?
Thanks

Answers (1)

Shubham Khatri
Shubham Khatri on 20 Apr 2021
Hello,
Please visit this documentation link to know more about types of plots available. In my view you can also try using the scatter3.
About the error in using the evalfis file, please go through community answer 1, community answer 2. You can also visit the documentation of evalfis.
Hope it helps

Community Treasure Hunt

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

Start Hunting!