Error in matrix to image

2 ビュー (過去 30 日間)
Oliver Lestrange
Oliver Lestrange 2020 年 8 月 6 日
Hi community,
I've created a matrix with structures. This structures are antennas.
%Vertical
ant.elevation = Vertical.Elevation;
ant.VertMagnitude = Vertical.Magnitude;
%Horizontal
ant.azimuth = Horizontal.Azimuth;
ant.HorizMagnitude = Horizontal.Magnitude;
%Gain and frequency
ant.freq = Optional.frequency;
ant.gain = Optional.gain.value;
I'm getting an error converting the matrix in image. The error is:
Error using image
There is no elevation property on the Image class.
I am converting the matrix to an image using
im = image(gNB,'CDataMapping','scaled');
It seems like the problem is obvious, the structure has an elevation an the class image isn't able to plot it.
How can I turn this matrix in a image? Is the parameters that I am using in image function a part of the problem?

回答 (0 件)

カテゴリ

Help Center および File ExchangeAntenna and Array Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by