# Index in position 1 exceeds array bounds (must not exceed 1).

4 views (last 30 days)
Aya Emam on 19 May 2023
Commented: KSSV on 19 May 2023
clc
clear all
close all
dB = Date(1:360,3);
% pol_1 = 10*log10(Data(1:121,3)./max(Data(1:121,3)));
Theta = Data(1:361,1)*pi/180;
dB = dB-min(dB);
polarplot (Theta,(dB/50))
hold on
##### 2 CommentsShow NoneHide None
Atsushi Ueno on 19 May 2023
Moved: Atsushi Ueno on 19 May 2023
The output from importdata function seems to be struct.
Theta (B1:B360) looks like only 90[deg] or 270[deg].
Date = struct with fields:
data: [360×7 double] textdata: {360×1 cell} rowheaders: {360×1 cell}
dB = Date.data(1:360,3);
% pol_1 = 10*log10(Data(1:121,3)./max(Data(1:121,3)));
Theta = Date.data(1:360,1)*pi/180;
dB = dB-min(dB);
polarplot (Theta,(dB/50))
hold on
Aya Emam on 19 May 2023
but this is the solution

KSSV on 19 May 2023
dB = T.(3) ;
% pol_1 = 10*log10(Data(1:121,3)./max(Data(1:121,3)));
Theta = T.(1)*pi/180;
dB = dB-min(dB);
polarplot (Theta,(dB/50))
##### 3 CommentsShow 1 older commentHide 1 older comment
Aya Emam on 19 May 2023
like 8 can you help me to draw like this by using the same excel sheet pleas sir
KSSV on 19 May 2023
Try changing the indices i.e. columns.