Plotting field over a discontinuous waveguide????

5 ビュー (過去 30 日間)
Gurpreet` Gosal
Gurpreet` Gosal 2012 年 12 月 21 日
コメント済み: Umar 2024 年 8 月 5 日
hi
I have x( 21 by 1) y(9by1) vectors and i have to plot field over thesee points but the field is not defined over all points as there are discontinuities in waveguide.. I have a vector H of 150 by1 to be plotted in certain regions of x,y grid.
HOw to do that?
Thanks Gurpreet

回答 (2 件)

Image Analyst
Image Analyst 2012 年 12 月 21 日
Give an example of your data. How is it discontinous/"not defined"? Do you have NaN or inf for some elements of the array(s)?

Umar
Umar 2024 年 8 月 4 日
編集済み: Umar 2024 年 8 月 5 日

Hi @ Gurpreet` Gosal,

Try using quiver function to visualize the vector field over the specified points by defining the regions where the vector field should be plotted by creating a mask based on the discontinuities in the waveguide. For more information on this function, please refer to quiver

  2 件のコメント
Image Analyst
Image Analyst 2024 年 8 月 4 日
編集済み: Image Analyst 2024 年 8 月 4 日
@Umar: Handy tip: you don't have to go out and figure out what the URL link is for a function, you can just type the @ symbol followed by doc: and then start typing the name. A popup list matching what you type will come up and then you can click on it and it will figure out the URL for you and make the link. Like @doc:quiver and then you can pick quiver from the list and it will show up like quiver
Also, if you do manually type or paste in the URL like you did, if you type a space or hit enter then it will make that URL a clickable link.
Umar
Umar 2024 年 8 月 5 日
Hi @ Image Analyst,
Thanks for the tip and your help, that was very helpful.

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

カテゴリ

Help Center および File ExchangeVector Fields についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by