how to implement cartesian coordinates

I have a image
which consists of cartesian coordinates,plz tell how to implement these coordinates,which function must be used
Kindly help

3 件のコメント

Walter Roberson
Walter Roberson 2013 年 3 月 29 日
What is the context for that? It does not appear to be general Cartesian coordinates: it appears to be the expression in Cartesian coordinates of something like a wave function or a rotation.
kash
kash 2013 年 3 月 29 日
it is equation taken from
which is Navier–Stokes equations
kash
kash 2013 年 3 月 29 日
its for fluid flow

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 3 月 29 日

0 投票

Use the symbolic toolbox function diff()

5 件のコメント

kash
kash 2013 年 3 月 29 日
walter tried example1 in
i got error as
Undefined function or variable 'x'.
when i gave x=2
i got
ans =
[]
y i get such answer
kash
kash 2013 年 3 月 29 日
i tried syms x and got answer
syms x
f=x^3
p=diff(f)
a=subs(f,[x],2)
i got answer
p =
3*x^2
a =
8
a must be 12,why i get 8
Walter Roberson
Walter Roberson 2013 年 3 月 29 日
8 is correct. f = x^3, and 2^3 is 8.
kash
kash 2013 年 4 月 3 日
after differentation we get 3x^2,so the answer should be 12 rite
Walter Roberson
Walter Roberson 2013 年 4 月 3 日
No, the answer for a=subs(f,[x],2) should be 8. Calculating diff(f) makes no difference to the value you find by substituting something into f.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeGet Started with MATLAB についてさらに検索

タグ

質問済み:

2013 年 3 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by