I have a problem with MATLAB bar3 plots: Here is what I have:
m x n Array Values
containing values of a measurement.
Another m x n Array Angles
Represents the angle at which a value was measured (e.g. the 3rd value was measured at an angle of 90°). The angular values for each measurement value are stored in another variable.
I need a range for my x-axis from -180° to +180°. This alone is no problem. But how do I hand over my measurement values? I have to somehow link them to the angular values. So that each value in Values
is somehow linked to it's angular value in Angles
. For my y-axis, I can simply count from 0 to the amount of rows of my Values
Array.
EXAMPLE:
Values
looks like:
3 5 6
2 1 7
5 8 2
Angles
looks like:
37° 38° 39°
36° 37° 38°
34° 35° 36°
Values(1,1) = 3
was measured at Angles(1,1) = 37°
for example.