現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
*PLOT FIELD VECTOR*
1 回表示 (過去 30 日間)
古いコメントを表示
justin Taylor
2011 年 12 月 19 日
(sin(4*x+8*y),cos(4*x+8*y),0)
16 件のコメント
Image Analyst
2011 年 12 月 19 日
Yeah, so? How about you explain something in English rather than just display a bunch of code? If there's a problem with quiver or inline, have you tried to figure it out by looking up the arguments and examples in the help? If you got an error, why didn't you post the error???
Walter Roberson
2011 年 12 月 19 日
I misread the original code; sub2ind() was not an appropriate solution.
What error message did you get originally? The sizes look okay to me when I work them through mentally.
Walter Roberson
2011 年 12 月 19 日
It would save time if you were to post the error message that *you* encountered, or at least describe what the difference was between the output you got and the output you expected?
justin Taylor
2011 年 12 月 19 日
sorry to bother you, I see you are very enthusiastic and I like that in your, i want find area surface limit x,y,z.
Walter Roberson
2011 年 12 月 19 日
You want to find the surface area of a quiver plot??
What exactly are you asking us in this question? Are you encountering an error in the code you posted?
If you were asking us about how to find the area surface limit x,y,z then your code would have to have z in it somewhere. The closest you show is your F, which is only 2D, and "surface area" is not a phrase that is applied to a 2D object (the 2D term is just "area")
Do not just post code and expect us to know what you want to do!
justin Taylor
2011 年 12 月 19 日
sorry ! because ihave got the wrong problem and i come from Viet Nam so my English not good! I hope you sympathize. I fix it.
Walter Roberson
2011 年 12 月 19 日
Okay, so you have defined an x, y, and z, and you have indicated that you need to use quiver(). You have not, though, indicated what is to be done. quiver() requires an x and y (but not a z), and it requires two vector fields, u and v. You do not have enough variables defined, not unless you want to use quiver(x,y) with the x and the y acting as u and v matrices.
http://www.mathworks.com/help/techdoc/ref/quiver.html
Are you certain that you want to write the value sin(4*x+8*y) over top of x? And then to use the new x in calculating cos(4*x+8*y) that you then write over the old y ?
Walter Roberson
2011 年 12 月 19 日
I see you have edited your code, but you have not yet indicated what is to be done. What is the relationship between the F matrix and the quivers to be drawn? For the quiver() call you need an "x", a "y", a "u" and a "v" parameter: do the "x" and "y" parameters you wish to use correspond to your "x" and "y" variables?
Naz
2011 年 12 月 19 日
Can you edit your question and provide all information that is given to you as well as requirements?
採用された回答
Walter Roberson
2011 年 12 月 21 日
>> t = linspace(0,4*pi,100);
>> [x,y] = ndgrid(t,t);
>> u = sin(4*x+8*y);
>> v = cos(4*x+8*y);
>> quiver(x,y,u,v)
4 件のコメント
justin Taylor
2011 年 12 月 22 日
hi ! thanks very much !I have a week busy should not be able to regularly. I am very happy to be a stranger like you for help! We may be you are not?. Ah! you have facebook or yahoo chat?. I want to add friends with you ? My email on facebook is kidstar079@yahoo.com.
Walter Roberson
2011 年 12 月 22 日
I spend so much time working that I reserve my facebook account for communication that has nothing to do with work, such as chatting with my large number of cousins.
その他の回答 (0 件)
参考
タグ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
アジア太平洋地域
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)