필터 지우기
필터 지우기

Error in matrix to image

조회 수: 1 (최근 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 CenterFile Exchange에서 Analysis, Benchmarking, and Verification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by