input=f(x) or f(x,y) how to plot/surf such unknown funktions?
Show older comments
i am planning to write a program which is able to plot/surf an inserted function input=f(x,y)
i want to use it just to make those functions visable in 2d/3d for my maths class so my questions are:
how to get an function into matlab?
and how to plot/surf that unknown function?
----------------------
ich möchte ein programm schreiben dass es mir ermöglicht mathematische funktionen (f(x,y) einzulesen und diese optisch auf dem bildschirm ausgibt um sie besser im unterricht besprechen zu können (erweiterungen des programmes werden dann ggf nullstellen berechnung etc)
Accepted Answer
More Answers (1)
Wayne King
on 4 Nov 2011
If you like Andrei's suggestion
z = eval(['@(x,y)',input('f(x,y) = ','s')])
Then user enters:
cosd(x)-sind(y)
ezmesh(z)
1 Comment
Markus Doll
on 4 Nov 2011
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!