I am getting NaN value from ifft (please guide)

9 views (last 30 days)
Hello,
I have a data file. I want to find the ifft values of column 6,7 (S21BD, S21DEG) but its showing the NaN value.
Please guide me about it.
Please see the attached data.
Thanks
  1 Comment
Ali Asghar
Ali Asghar on 18 Apr 2023
Thanks Chunru for prompt reply.
Now I am doing processing on this signal. I will let you know if I stuck some were.
Can you share your matlab email address too?
Thanks

Sign in to comment.

Accepted Answer

Chunru
Chunru on 18 Apr 2023
websave("data.mat", "https://www.mathworks.com/matlabcentral/answers/uploaded_files/1359493/data.mat");
load data
% Your data contains nans at the end
data(800:end, :)
ans = 4×9 table
FreqHz S11DB S11DEG S12DB S12DEG S21DB S21DEG S22DB S22DEG __________ _______ _______ _______ ______ _______ ______ _______ ______ 5.7991e+09 -4.5944 -20.415 -71.516 32.787 -71.95 34.237 -3.2147 110.61 5.8e+09 -4.636 -21.652 -71.581 29.843 -72.268 32.31 -3.1784 111.34 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
% Remove the missing data
data = rmmissing(data);
tail(data)
FreqHz S11DB S11DEG S12DB S12DEG S21DB S21DEG S22DB S22DEG __________ _______ _______ _______ ______ _______ ______ _______ ______ 5.7939e+09 -3.7023 -13.77 -69.163 55.885 -69.101 55.345 -3.7627 107.32 5.7948e+09 -3.9202 -14.219 -69.614 51.635 -69.561 49.881 -3.6458 107.28 5.7956e+09 -4.1451 -15.181 -70.292 47.555 -70.006 46.141 -3.5419 107.66 5.7965e+09 -4.3443 -16.545 -70.685 43.361 -70.635 42.368 -3.4572 108.34 5.7974e+09 -4.4688 -18.003 -71.028 39.176 -71.18 38.99 -3.3819 108.98 5.7982e+09 -4.5413 -19.252 -71.3 35.874 -71.599 36.226 -3.2887 109.77 5.7991e+09 -4.5944 -20.415 -71.516 32.787 -71.95 34.237 -3.2147 110.61 5.8e+09 -4.636 -21.652 -71.581 29.843 -72.268 32.31 -3.1784 111.34
% Now you can do ifft on the data
y = ifft(data.S21DB)
y =
-69.1228 - 0.0000i 1.9963 - 0.2860i 0.3640 + 0.9341i -0.2914 + 0.0709i 0.5530 + 0.6093i -0.2309 + 0.1763i 0.4724 - 0.2781i -0.2384 + 0.6814i 0.3185 - 0.0404i -0.0999 + 0.8587i -0.5795 + 0.3940i 0.6962 - 0.0676i -0.2256 - 0.0035i -0.1009 + 0.1864i -0.0035 + 0.0843i -0.1030 + 0.3478i -0.1744 + 0.1127i 0.1345 + 0.7777i 0.4216 - 0.1393i 0.5876 - 0.3374i -0.6063 + 0.2240i 0.3122 + 0.2843i 0.0702 + 0.3177i 0.3304 - 0.0333i 0.1121 + 0.0162i -0.4103 - 0.0552i 0.4432 - 0.0754i -0.7732 - 0.1936i -0.4638 + 0.1192i 0.1147 + 0.4895i -0.1529 - 0.0008i -0.0226 + 0.1762i 0.2106 - 0.1007i 0.0311 + 0.2014i -0.2287 - 0.1230i -0.1079 + 0.3177i -0.0253 - 0.0886i -0.1886 + 0.1488i -0.1721 + 0.1525i 0.1887 - 0.0068i -0.0721 + 0.0889i -0.0810 - 0.0717i 0.0768 + 0.2450i -0.0177 + 0.0396i -0.0300 - 0.0393i 0.0783 + 0.3185i 0.1983 - 0.0624i -0.0771 + 0.0005i -0.0595 + 0.0439i 0.0509 + 0.0028i 0.0207 + 0.0187i 0.0495 + 0.1325i 0.0460 - 0.0246i -0.0366 + 0.0033i -0.0224 - 0.0071i -0.0059 + 0.0695i 0.0191 + 0.0322i -0.0062 + 0.0923i -0.0500 + 0.0834i 0.0512 + 0.0156i 0.0336 + 0.0521i -0.0053 - 0.0163i -0.0195 + 0.0315i -0.0426 + 0.0277i 0.0182 + 0.0229i -0.0344 + 0.0660i 0.0517 + 0.0323i 0.0134 + 0.0416i -0.0089 + 0.0033i -0.0060 + 0.0178i 0.0002 + 0.0531i 0.0078 + 0.0304i -0.0175 + 0.0374i 0.0297 + 0.0435i 0.0090 + 0.0010i -0.0046 + 0.0248i 0.0194 + 0.0306i 0.0020 + 0.0158i -0.0060 + 0.0285i 0.0053 + 0.0332i 0.0222 + 0.0218i 0.0002 + 0.0161i 0.0020 + 0.0256i 0.0081 + 0.0221i 0.0032 + 0.0202i 0.0025 + 0.0262i 0.0080 + 0.0231i 0.0068 + 0.0216i 0.0053 + 0.0217i 0.0058 + 0.0218i 0.0060 + 0.0217i 0.0072 + 0.0218i 0.0076 + 0.0187i 0.0022 + 0.0195i 0.0056 + 0.0211i 0.0058 + 0.0202i 0.0059 + 0.0233i 0.0086 + 0.0231i 0.0110 + 0.0145i 0.0076 + 0.0178i 0.0014 + 0.0119i 0.0032 + 0.0185i 0.0047 + 0.0270i 0.0074 + 0.0166i 0.0074 + 0.0236i 0.0106 + 0.0163i 0.0151 + 0.0172i -0.0011 + 0.0086i 0.0005 + 0.0189i 0.0098 + 0.0249i 0.0040 + 0.0146i 0.0061 + 0.0270i 0.0212 + 0.0202i 0.0069 + 0.0115i -0.0015 + 0.0157i 0.0061 + 0.0211i 0.0113 + 0.0205i 0.0026 + 0.0174i 0.0125 + 0.0251i 0.0242 + 0.0115i 0.0086 + 0.0047i -0.0010 + 0.0151i 0.0073 + 0.0184i 0.0027 + 0.0111i 0.0031 + 0.0276i 0.0159 + 0.0183i 0.0183 + 0.0087i -0.0005 + 0.0072i 0.0066 + 0.0127i 0.0042 + 0.0126i 0.0015 + 0.0129i 0.0077 + 0.0224i 0.0139 + 0.0149i 0.0110 + 0.0093i 0.0056 + 0.0159i 0.0085 + 0.0107i 0.0019 + 0.0085i 0.0051 + 0.0146i 0.0026 + 0.0211i 0.0127 + 0.0179i 0.0139 + 0.0127i 0.0084 + 0.0099i 0.0059 + 0.0129i 0.0034 + 0.0121i 0.0100 + 0.0165i 0.0053 + 0.0136i 0.0147 + 0.0169i 0.0115 + 0.0055i 0.0026 + 0.0060i 0.0050 + 0.0129i 0.0067 + 0.0101i 0.0045 + 0.0126i 0.0050 + 0.0181i 0.0135 + 0.0128i 0.0087 + 0.0091i 0.0065 + 0.0102i 0.0093 + 0.0128i 0.0054 + 0.0087i 0.0021 + 0.0117i 0.0112 + 0.0159i 0.0106 + 0.0112i 0.0078 + 0.0068i 0.0080 + 0.0116i 0.0074 + 0.0077i 0.0057 + 0.0087i 0.0045 + 0.0138i 0.0084 + 0.0131i 0.0093 + 0.0109i 0.0072 + 0.0097i 0.0094 + 0.0110i 0.0073 + 0.0086i 0.0069 + 0.0105i 0.0076 + 0.0109i 0.0074 + 0.0098i 0.0084 + 0.0100i 0.0079 + 0.0096i 0.0076 + 0.0094i 0.0075 + 0.0095i 0.0076 + 0.0095i 0.0077 + 0.0094i 0.0075 + 0.0091i 0.0073 + 0.0092i 0.0072 + 0.0092i 0.0076 + 0.0096i 0.0070 + 0.0095i 0.0089 + 0.0092i 0.0085 + 0.0082i 0.0064 + 0.0069i 0.0069 + 0.0095i 0.0068 + 0.0091i 0.0076 + 0.0094i 0.0075 + 0.0101i 0.0096 + 0.0089i 0.0100 + 0.0060i 0.0059 + 0.0055i 0.0069 + 0.0090i 0.0063 + 0.0060i 0.0049 + 0.0096i 0.0080 + 0.0112i 0.0086 + 0.0071i 0.0064 + 0.0063i 0.0073 + 0.0083i 0.0044 + 0.0078i 0.0061 + 0.0074i 0.0055 + 0.0116i 0.0097 + 0.0104i 0.0119 + 0.0058i 0.0058 + 0.0056i 0.0073 + 0.0075i 0.0058 + 0.0066i 0.0071 + 0.0087i 0.0053 + 0.0101i 0.0089 + 0.0082i 0.0103 + 0.0066i 0.0065 + 0.0049i 0.0067 + 0.0079i 0.0066 + 0.0055i 0.0059 + 0.0118i 0.0075 + 0.0072i 0.0097 + 0.0094i 0.0104 + 0.0089i 0.0100 + 0.0017i 0.0072 + 0.0072i 0.0060 + 0.0035i 0.0053 + 0.0080i 0.0047 + 0.0087i 0.0108 + 0.0096i 0.0084 + 0.0052i 0.0086 + 0.0044i 0.0074 + 0.0085i 0.0066 + 0.0033i 0.0067 + 0.0059i 0.0046 + 0.0097i 0.0119 + 0.0065i 0.0086 + 0.0057i 0.0064 + 0.0053i 0.0076 + 0.0053i 0.0068 + 0.0058i 0.0049 + 0.0065i 0.0074 + 0.0099i 0.0105 + 0.0066i 0.0088 + 0.0054i 0.0072 + 0.0076i 0.0091 + 0.0032i 0.0068 + 0.0060i 0.0063 + 0.0065i 0.0102 + 0.0062i 0.0078 + 0.0071i 0.0088 + 0.0047i 0.0093 + 0.0053i 0.0082 + 0.0033i 0.0061 + 0.0056i 0.0063 + 0.0058i 0.0090 + 0.0060i 0.0084 + 0.0064i 0.0082 + 0.0045i 0.0087 + 0.0052i 0.0079 + 0.0043i 0.0074 + 0.0042i 0.0072 + 0.0057i 0.0079 + 0.0051i 0.0085 + 0.0051i 0.0080 + 0.0046i 0.0079 + 0.0045i 0.0078 + 0.0048i 0.0077 + 0.0047i 0.0079 + 0.0047i 0.0079 + 0.0046i 0.0079 + 0.0046i 0.0080 + 0.0044i 0.0078 + 0.0046i 0.0077 + 0.0047i 0.0088 + 0.0043i 0.0077 + 0.0041i 0.0076 + 0.0038i 0.0081 + 0.0042i 0.0073 + 0.0038i 0.0072 + 0.0048i 0.0079 + 0.0054i 0.0097 + 0.0038i 0.0080 + 0.0030i 0.0068 + 0.0033i 0.0076 + 0.0038i 0.0071 + 0.0047i 0.0071 + 0.0051i 0.0086 + 0.0050i 0.0094 + 0.0038i 0.0079 + 0.0027i 0.0077 + 0.0040i 0.0076 + 0.0030i 0.0070 + 0.0041i 0.0078 + 0.0052i 0.0096 + 0.0037i 0.0094 + 0.0034i 0.0083 + 0.0021i 0.0075 + 0.0035i 0.0076 + 0.0011i 0.0073 + 0.0033i 0.0059 + 0.0044i 0.0105 + 0.0042i 0.0076 + 0.0033i 0.0075 + 0.0007i 0.0075 + 0.0039i 0.0077 + 0.0027i 0.0067 + 0.0024i 0.0055 + 0.0068i 0.0109 + 0.0030i 0.0083 + 0.0018i 0.0072 + 0.0018i 0.0076 + 0.0037i 0.0061 + 0.0013i 0.0071 + 0.0050i 0.0079 + 0.0055i 0.0110 + 0.0029i 0.0076 + 0.0011i 0.0075 + 0.0022i 0.0080 + 0.0016i 0.0061 + 0.0026i 0.0057 + 0.0040i 0.0085 + 0.0047i 0.0101 + 0.0034i 0.0085 + 0.0028i 0.0092 + 0.0024i 0.0091 - 0.0003i 0.0071 + 0.0026i 0.0053 + 0.0028i 0.0096 + 0.0019i 0.0065 + 0.0034i 0.0088 + 0.0008i 0.0083 + 0.0029i 0.0072 + 0.0021i 0.0073 + 0.0015i 0.0058 + 0.0029i 0.0095 + 0.0044i 0.0075 + 0.0023i 0.0087 + 0.0009i 0.0085 + 0.0027i 0.0067 + 0.0007i 0.0080 + 0.0022i 0.0068 + 0.0032i 0.0086 + 0.0021i 0.0081 + 0.0018i 0.0084 + 0.0018i 0.0074 + 0.0015i 0.0079 + 0.0012i 0.0075 + 0.0018i 0.0077 + 0.0024i 0.0079 + 0.0020i 0.0083 + 0.0017i 0.0078 + 0.0018i 0.0080 + 0.0013i 0.0079 + 0.0012i 0.0073 + 0.0017i 0.0078 + 0.0016i 0.0079 + 0.0018i 0.0078 + 0.0015i 0.0079 + 0.0015i 0.0078 + 0.0015i 0.0080 + 0.0014i 0.0079 + 0.0014i 0.0078 + 0.0011i 0.0080 + 0.0014i 0.0076 + 0.0015i 0.0077 + 0.0011i 0.0081 + 0.0016i 0.0082 + 0.0008i 0.0077 + 0.0012i 0.0073 + 0.0009i 0.0084 + 0.0016i 0.0067 + 0.0009i 0.0080 + 0.0002i 0.0073 + 0.0031i 0.0084 + 0.0013i 0.0095 + 0.0007i 0.0077 + 0.0001i 0.0074 + 0.0010i 0.0073 + 0.0011i 0.0075 + 0.0001i 0.0083 + 0.0021i 0.0075 + 0.0020i 0.0100 + 0.0008i 0.0080 - 0.0000i 0.0079 - 0.0015i 0.0075 + 0.0020i 0.0071 + 0.0016i 0.0089 - 0.0008i 0.0083 + 0.0023i 0.0073 - 0.0005i 0.0098 - 0.0001i 0.0078 - 0.0001i 0.0078 - 0.0015i 0.0062 + 0.0012i 0.0086 + 0.0009i 0.0094 - 0.0009i 0.0067 - 0.0015i 0.0082 + 0.0003i 0.0079 + 0.0012i 0.0064 - 0.0022i 0.0055 + 0.0016i 0.0087 + 0.0021i 0.0091 + 0.0012i 0.0091 - 0.0012i 0.0087 - 0.0021i 0.0055 - 0.0016i 0.0064 + 0.0022i 0.0079 - 0.0012i 0.0082 - 0.0003i 0.0067 + 0.0015i 0.0094 + 0.0009i 0.0086 - 0.0009i 0.0062 - 0.0012i 0.0078 + 0.0015i 0.0078 + 0.0001i 0.0098 + 0.0001i 0.0073 + 0.0005i 0.0083 - 0.0023i 0.0089 + 0.0008i 0.0071 - 0.0016i 0.0075 - 0.0020i 0.0079 + 0.0015i 0.0080 + 0.0000i 0.0100 - 0.0008i 0.0075 - 0.0020i 0.0083 - 0.0021i 0.0075 - 0.0001i 0.0073 - 0.0011i 0.0074 - 0.0010i 0.0077 - 0.0001i 0.0095 - 0.0007i 0.0084 - 0.0013i 0.0073 - 0.0031i 0.0080 - 0.0002i 0.0067 - 0.0009i 0.0084 - 0.0016i 0.0073 - 0.0009i 0.0077 - 0.0012i 0.0082 - 0.0008i 0.0081 - 0.0016i 0.0077 - 0.0011i 0.0076 - 0.0015i 0.0080 - 0.0014i 0.0078 - 0.0011i 0.0079 - 0.0014i 0.0080 - 0.0014i 0.0078 - 0.0015i 0.0079 - 0.0015i 0.0078 - 0.0015i 0.0079 - 0.0018i 0.0078 - 0.0016i 0.0073 - 0.0017i 0.0079 - 0.0012i 0.0080 - 0.0013i 0.0078 - 0.0018i 0.0083 - 0.0017i 0.0079 - 0.0020i 0.0077 - 0.0024i 0.0075 - 0.0018i 0.0079 - 0.0012i 0.0074 - 0.0015i 0.0084 - 0.0018i 0.0081 - 0.0018i 0.0086 - 0.0021i 0.0068 - 0.0032i 0.0080 - 0.0022i 0.0067 - 0.0007i 0.0085 - 0.0027i 0.0087 - 0.0009i 0.0075 - 0.0023i 0.0095 - 0.0044i 0.0058 - 0.0029i 0.0073 - 0.0015i 0.0072 - 0.0021i 0.0083 - 0.0029i 0.0088 - 0.0008i 0.0065 - 0.0034i 0.0096 - 0.0019i 0.0053 - 0.0028i 0.0071 - 0.0026i 0.0091 + 0.0003i 0.0092 - 0.0024i 0.0085 - 0.0028i 0.0101 - 0.0034i 0.0085 - 0.0047i 0.0057 - 0.0040i 0.0061 - 0.0026i 0.0080 - 0.0016i 0.0075 - 0.0022i 0.0076 - 0.0011i 0.0110 - 0.0029i 0.0079 - 0.0055i 0.0071 - 0.0050i 0.0061 - 0.0013i 0.0076 - 0.0037i 0.0072 - 0.0018i 0.0083 - 0.0018i 0.0109 - 0.0030i 0.0055 - 0.0068i 0.0067 - 0.0024i 0.0077 - 0.0027i 0.0075 - 0.0039i 0.0075 - 0.0007i 0.0076 - 0.0033i 0.0105 - 0.0042i 0.0059 - 0.0044i 0.0073 - 0.0033i 0.0076 - 0.0011i 0.0075 - 0.0035i 0.0083 - 0.0021i 0.0094 - 0.0034i 0.0096 - 0.0037i 0.0078 - 0.0052i 0.0070 - 0.0041i 0.0076 - 0.0030i 0.0077 - 0.0040i 0.0079 - 0.0027i 0.0094 - 0.0038i 0.0086 - 0.0050i 0.0071 - 0.0051i 0.0071 - 0.0047i 0.0076 - 0.0038i 0.0068 - 0.0033i 0.0080 - 0.0030i 0.0097 - 0.0038i 0.0079 - 0.0054i 0.0072 - 0.0048i 0.0073 - 0.0038i 0.0081 - 0.0042i 0.0076 - 0.0038i 0.0077 - 0.0041i 0.0088 - 0.0043i 0.0077 - 0.0047i 0.0078 - 0.0046i 0.0080 - 0.0044i 0.0079 - 0.0046i 0.0079 - 0.0046i 0.0079 - 0.0047i 0.0077 - 0.0047i 0.0078 - 0.0048i 0.0079 - 0.0045i 0.0080 - 0.0046i 0.0085 - 0.0051i 0.0079 - 0.0051i 0.0072 - 0.0057i 0.0074 - 0.0042i 0.0079 - 0.0043i 0.0087 - 0.0052i 0.0082 - 0.0045i 0.0084 - 0.0064i 0.0090 - 0.0060i 0.0063 - 0.0058i 0.0061 - 0.0056i 0.0082 - 0.0033i 0.0093 - 0.0053i 0.0088 - 0.0047i 0.0078 - 0.0071i 0.0102 - 0.0062i 0.0063 - 0.0065i 0.0068 - 0.0060i 0.0091 - 0.0032i 0.0072 - 0.0076i 0.0088 - 0.0054i 0.0105 - 0.0066i 0.0074 - 0.0099i 0.0049 - 0.0065i 0.0068 - 0.0058i 0.0076 - 0.0053i 0.0064 - 0.0053i 0.0086 - 0.0057i 0.0119 - 0.0065i 0.0046 - 0.0097i 0.0067 - 0.0059i 0.0066 - 0.0033i 0.0074 - 0.0085i 0.0086 - 0.0044i 0.0084 - 0.0052i 0.0108 - 0.0096i 0.0047 - 0.0087i 0.0053 - 0.0080i 0.0060 - 0.0035i 0.0072 - 0.0072i 0.0100 - 0.0017i 0.0104 - 0.0089i 0.0097 - 0.0094i 0.0075 - 0.0072i 0.0059 - 0.0118i 0.0066 - 0.0055i 0.0067 - 0.0079i 0.0065 - 0.0049i 0.0103 - 0.0066i 0.0089 - 0.0082i 0.0053 - 0.0101i 0.0071 - 0.0087i 0.0058 - 0.0066i 0.0073 - 0.0075i 0.0058 - 0.0056i 0.0119 - 0.0058i 0.0097 - 0.0104i 0.0055 - 0.0116i 0.0061 - 0.0074i 0.0044 - 0.0078i 0.0073 - 0.0083i 0.0064 - 0.0063i 0.0086 - 0.0071i 0.0080 - 0.0112i 0.0049 - 0.0096i 0.0063 - 0.0060i 0.0069 - 0.0090i 0.0059 - 0.0055i 0.0100 - 0.0060i 0.0096 - 0.0089i 0.0075 - 0.0101i 0.0076 - 0.0094i 0.0068 - 0.0091i 0.0069 - 0.0095i 0.0064 - 0.0069i 0.0085 - 0.0082i 0.0089 - 0.0092i 0.0070 - 0.0095i 0.0076 - 0.0096i 0.0072 - 0.0092i 0.0073 - 0.0092i 0.0075 - 0.0091i 0.0077 - 0.0094i 0.0076 - 0.0095i 0.0075 - 0.0095i 0.0076 - 0.0094i 0.0079 - 0.0096i 0.0084 - 0.0100i 0.0074 - 0.0098i 0.0076 - 0.0109i 0.0069 - 0.0105i 0.0073 - 0.0086i 0.0094 - 0.0110i 0.0072 - 0.0097i 0.0093 - 0.0109i 0.0084 - 0.0131i 0.0045 - 0.0138i 0.0057 - 0.0087i 0.0074 - 0.0077i 0.0080 - 0.0116i 0.0078 - 0.0068i 0.0106 - 0.0112i 0.0112 - 0.0159i 0.0021 - 0.0117i 0.0054 - 0.0087i 0.0093 - 0.0128i 0.0065 - 0.0102i 0.0087 - 0.0091i 0.0135 - 0.0128i 0.0050 - 0.0181i 0.0045 - 0.0126i 0.0067 - 0.0101i 0.0050 - 0.0129i 0.0026 - 0.0060i 0.0115 - 0.0055i 0.0147 - 0.0169i 0.0053 - 0.0136i 0.0100 - 0.0165i 0.0034 - 0.0121i 0.0059 - 0.0129i 0.0084 - 0.0099i 0.0139 - 0.0127i 0.0127 - 0.0179i 0.0026 - 0.0211i 0.0051 - 0.0146i 0.0019 - 0.0085i 0.0085 - 0.0107i 0.0056 - 0.0159i 0.0110 - 0.0093i 0.0139 - 0.0149i 0.0077 - 0.0224i 0.0015 - 0.0129i 0.0042 - 0.0126i 0.0066 - 0.0127i -0.0005 - 0.0072i 0.0183 - 0.0087i 0.0159 - 0.0183i 0.0031 - 0.0276i 0.0027 - 0.0111i 0.0073 - 0.0184i -0.0010 - 0.0151i 0.0086 - 0.0047i 0.0242 - 0.0115i 0.0125 - 0.0251i 0.0026 - 0.0174i 0.0113 - 0.0205i 0.0061 - 0.0211i -0.0015 - 0.0157i 0.0069 - 0.0115i 0.0212 - 0.0202i 0.0061 - 0.0270i 0.0040 - 0.0146i 0.0098 - 0.0249i 0.0005 - 0.0189i -0.0011 - 0.0086i 0.0151 - 0.0172i 0.0106 - 0.0163i 0.0074 - 0.0236i 0.0074 - 0.0166i 0.0047 - 0.0270i 0.0032 - 0.0185i 0.0014 - 0.0119i 0.0076 - 0.0178i 0.0110 - 0.0145i 0.0086 - 0.0231i 0.0059 - 0.0233i 0.0058 - 0.0202i 0.0056 - 0.0211i 0.0022 - 0.0195i 0.0076 - 0.0187i 0.0072 - 0.0218i 0.0060 - 0.0217i 0.0058 - 0.0218i 0.0053 - 0.0217i 0.0068 - 0.0216i 0.0080 - 0.0231i 0.0025 - 0.0262i 0.0032 - 0.0202i 0.0081 - 0.0221i 0.0020 - 0.0256i 0.0002 - 0.0161i 0.0222 - 0.0218i 0.0053 - 0.0332i -0.0060 - 0.0285i 0.0020 - 0.0158i 0.0194 - 0.0306i -0.0046 - 0.0248i 0.0090 - 0.0010i 0.0297 - 0.0435i -0.0175 - 0.0374i 0.0078 - 0.0304i 0.0002 - 0.0531i -0.0060 - 0.0178i -0.0089 - 0.0033i 0.0134 - 0.0416i 0.0517 - 0.0323i -0.0344 - 0.0660i 0.0182 - 0.0229i -0.0426 - 0.0277i -0.0195 - 0.0315i -0.0053 + 0.0163i 0.0336 - 0.0521i 0.0512 - 0.0156i -0.0500 - 0.0834i -0.0062 - 0.0923i 0.0191 - 0.0322i -0.0059 - 0.0695i -0.0224 + 0.0071i -0.0366 - 0.0033i 0.0460 + 0.0246i 0.0495 - 0.1325i 0.0207 - 0.0187i 0.0509 - 0.0028i -0.0595 - 0.0439i -0.0771 - 0.0005i 0.1983 + 0.0624i 0.0783 - 0.3185i -0.0300 + 0.0393i -0.0177 - 0.0396i 0.0768 - 0.2450i -0.0810 + 0.0717i -0.0721 - 0.0889i 0.1887 + 0.0068i -0.1721 - 0.1525i -0.1886 - 0.1488i -0.0253 + 0.0886i -0.1079 - 0.3177i -0.2287 + 0.1230i 0.0311 - 0.2014i 0.2106 + 0.1007i -0.0226 - 0.1762i -0.1529 + 0.0008i 0.1147 - 0.4895i -0.4638 - 0.1192i -0.7732 + 0.1936i 0.4432 + 0.0754i -0.4103 + 0.0552i 0.1121 - 0.0162i 0.3304 + 0.0333i 0.0702 - 0.3177i 0.3122 - 0.2843i -0.6063 - 0.2240i 0.5876 + 0.3374i 0.4216 + 0.1393i 0.1345 - 0.7777i -0.1744 - 0.1127i -0.1030 - 0.3478i -0.0035 - 0.0843i -0.1009 - 0.1864i -0.2256 + 0.0035i 0.6962 + 0.0676i -0.5795 - 0.3940i -0.0999 - 0.8587i 0.3185 + 0.0404i -0.2384 - 0.6814i 0.4724 + 0.2781i -0.2309 - 0.1763i 0.5530 - 0.6093i -0.2914 - 0.0709i 0.3640 - 0.9341i 1.9963 + 0.2860i

More Answers (1)

Walter Roberson
Walter Roberson on 18 Apr 2023
ds = load('data.mat');
data = ds.data;
S21BD = data{:,6};
S21DEG = data{:,7};
maskBD = isfinite(S21BD);
find(~maskBD)
ans = 2×1
802 803
maskDEG = isfinite(S21DEG);
find(~maskDEG)
ans = 2×1
802 803
whos S21BD S21DEG
Name Size Bytes Class Attributes S21BD 803x1 6424 double S21DEG 803x1 6424 double
data(801:end,:)
ans = 3×9 table
FreqHz S11DB S11DEG S12DB S12DEG S21DB S21DEG S22DB S22DEG _______ ______ _______ _______ ______ _______ ______ _______ ______ 5.8e+09 -4.636 -21.652 -71.581 29.843 -72.268 32.31 -3.1784 111.34 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
The last two rows of your table are all nan. You should be considering using rmmissing

Tags

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!