이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
*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!오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 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 (한국어)