Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

help me for coding in matlab

Status
Not open for further replies.

shafe

Newbie level 3
Newbie level 3
Joined
Mar 28, 2007
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,298
hi all
Hi all
what will be the coding in matlab to draw the graph of the following equation
x+y+z=1;
x^2+y^2+z^2=1
x^3+y^3+z^3=1
Thanks in advance
 

hi
what is the range of x,y,z?
 

    shafe

    Points: 2
    Helpful Answer Positive Rating
Range will be [0,1]
Need the create a function using matlab not using the conventional function
 

Try this


Code:
clear
clc;
syms x y;

z=inline('sqrt(x^2+y^2- 1)');
ezsurf(z,[0,1,0,1]);

figure(2)
z=inline('x+y- 1');
ezsurf(z,[0,1,0,1]);

figure(3)
z=inline('(x^3+y^3- 1)^(1/3)');
ezsurf(z,[0,1,0,1]);
 

    shafe

    Points: 2
    Helpful Answer Positive Rating
Thank u very much.
suppose x^2+y^2=1
this a equation for circle like x^2+y^2=r^2
like x+y=1 this a straight line equation which make a square when we take the value of theta from 0 to pi.
similar way I need t draw the curve in three dimension taking the x+y+z=1 ans so on..
again waiting for ue help.
 

u can use the surf function to do it
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top