How to make a video with array pattern function

8 ビュー (過去 30 日間)
Vishnu Peteti
Vishnu Peteti 2023 年 1 月 10 日
コメント済み: Image Analyst 2023 年 1 月 10 日
I am trying to make a video on how the directivity of an antenna array as I steer the beam. I have so far the following code:
videoFile = VideoWriter('Directivity_Change in angle');
open(videoFile);
for aziang = -90:90
steervec = phased.SteeringVector('SensorArray',URA);
weights = steervec(fc,[aziang;0]);
pattern(URA,fc,[-180:180],[-90:90],...
'CoordinateSystem','polar',...
'Type','directivity','PropagationSpeed',c,'Weights',weights)
F = getframe(gcf);
writeVideo(videoFile,weights)
end
I am ending up getting that no video frames were written to thie file. I am not sure how to do this so was wondering if I could get some help. Thanks in Advance!

回答 (1 件)

Image Analyst
Image Analyst 2023 年 1 月 10 日
編集済み: Image Analyst 2023 年 1 月 10 日
Do you see anything in the display?
Write out F, not weights.
writeVideo(videoFile, F)
See attached demo.
  2 件のコメント
Vishnu Peteti
Vishnu Peteti 2023 年 1 月 10 日
Thank you very much for the reply, it was in fact the 'F' - feel silly for asking here - thanks so much
Image Analyst
Image Analyst 2023 年 1 月 10 日
If this Answer solves your original question, then could you please click the "Accept this answer" link to award the answerer with "reputation points" for their efforts in helping you? They'd appreciate it. Thanks in advance. 🙂 Note: you can only accept one answer (so pick the best one) but you can click the "Vote" icon for as many Answers as you want. Voting for an answer will also award reputation points.

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

カテゴリ

Help Center および File ExchangeGet Started with Phased Array System Toolbox についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by