Sophia asked . 2020-12-04

How to read specific parts of file and then write it to a text file?

I try understanding regexp function. I want you to guide me for next step. Because I got stuck.
I would like to read specific parts of a file as pattern and then write it to text file?
Data section is between START OF TEC MAP and END OF TEC MAP.
 
%Read contents of a file as text, specified as a character vector or string scalar
str = fileread ('codg1520.14i');

% Data section
matchStr = regexp( str, '(?<=START OF TEC MAP).+?(?=END OF TEC MAP)', 'match' );
Array of the size 71x73x12 or 71x73x24 or 71x73x25 as latitude, longitude, universal time. It depends on file. Array of the size 71x73x12 for this file.
I am not sure that if necessary I can delete strings of each line or extract numbers of each line into cell arrays.
% extract numbers of each line
C = regexp(matchStr, '\d*\.?\d*', 'match');

How to extract data 2nd row the last five longitude values?

For example:

 

  2014     6     1     0     0     0                        EPOCH OF CURRENT MAP  
    45.0-180.0 180.0   5.0 450.0                            LAT/LON1/LON2/DLON/H
  278  289  295  297  293  286  275  260  244  229  217  208  201  195  188  180
  174  170  169  170  170  171  170  170  171  172  172  170  164  154  143  131
  122  116  114  117  121  125  126  124  122  123  127  134  141  148  154  161
  171  187  206  226  244  255  258  254  246  236  228  221  214  208  202  198
  198  201  208  216  225  236  249  264  278
Lat = 45
Data = 170 164 154 143 131
Whatever I tried, I always get error message. So what should I do next move to parse data and then write it to text file?

matlab , array index , matrix , signal processing

Expert Answer

Kshitij Singh answered . 2024-05-18 03:25:56

str = fileread('codg1520.14i');
% Functions to convert text to numeric:
fun = @(s)sscanf(s,'%f',[1,Inf]);
baz = @(c)cell2mat(cellfun(fun,c(:),'uni',0));
% Identify TEC MAPs:
fmt = '(\d+)\s+START OF TEC MAP(.+?)\s+(\d+)\s+END OF TEC MAP';
tmp = regexp(str,fmt,'tokens');
tmp = vertcat(tmp{:});
num = str2double(tmp(:,[1,3])); % map number
assert(all(~diff(num,1,2)),'map numbers do not match up')
% Identify EPOCHs:
fmt = '^(\s+\d+){6}\s+EPOCH OF CURRENT MAP';
epo = regexp(tmp(:,2),fmt,'tokens','once');
epo = cell2mat(cellfun(fun,vertcat(epo{:}),'uni',0));
tmp = regexprep(tmp(:,2),fmt,'');
% Identify position and data:
fmt = '(\s*[-+]?\d+\.\d+)+\s+(\S+)';
[pos,tmp] = regexp(tmp,fmt,'match','split');
pos = cellfun(baz,pos,'uni',0);
tmp = cellfun(baz,tmp,'uni',0);

Giving you the data from each "TEC MAP", for example the second :

>> epo(2,:) % eopch
ans =
        2014           6           1           2           0           0
>> pos{2} % position
ans =
         87.5         -180          180            5          450
           85         -180          180            5          450
         82.5         -180          180            5          450
           80         -180          180            5          450
         77.5         -180          180            5          450
           75         -180          180            5          450
         72.5         -180          180            5          450
           70         -180          180            5          450
         67.5         -180          180            5          450
           65         -180          180            5          450
         62.5         -180          180            5          450
           60         -180          180            5          450
         57.5         -180          180            5          450
           55         -180          180            5          450
         52.5         -180          180            5          450
           50         -180          180            5          450
         47.5         -180          180            5          450
           45         -180          180            5          450
         42.5         -180          180            5          450
           40         -180          180            5          450
         37.5         -180          180            5          450
           35         -180          180            5          450
         32.5         -180          180            5          450
           30         -180          180            5          450
         27.5         -180          180            5          450
           25         -180          180            5          450
         22.5         -180          180            5          450
           20         -180          180            5          450
         17.5         -180          180            5          450
           15         -180          180            5          450
         12.5         -180          180            5          450
           10         -180          180            5          450
          7.5         -180          180            5          450
            5         -180          180            5          450
          2.5         -180          180            5          450
            0         -180          180            5          450
         -2.5         -180          180            5          450
           -5         -180          180            5          450
         -7.5         -180          180            5          450
          -10         -180          180            5          450
        -12.5         -180          180            5          450
          -15         -180          180            5          450
        -17.5         -180          180            5          450
          -20         -180          180            5          450
        -22.5         -180          180            5          450
          -25         -180          180            5          450
        -27.5         -180          180            5          450
          -30         -180          180            5          450
        -32.5         -180          180            5          450
          -35         -180          180            5          450
        -37.5         -180          180            5          450
          -40         -180          180            5          450
        -42.5         -180          180            5          450
          -45         -180          180            5          450
        -47.5         -180          180            5          450
          -50         -180          180            5          450
        -52.5         -180          180            5          450
          -55         -180          180            5          450
        -57.5         -180          180            5          450
          -60         -180          180            5          450
        -62.5         -180          180            5          450
          -65         -180          180            5          450
        -67.5         -180          180            5          450
          -70         -180          180            5          450
        -72.5         -180          180            5          450
          -75         -180          180            5          450
        -77.5         -180          180            5          450
          -80         -180          180            5          450
        -82.5         -180          180            5          450
          -85         -180          180            5          450
        -87.5         -180          180            5          450
>> tmp{2} % data
ans =
   164   164   165   165   165   166   166   166   167   167   168   168   168   168   169   169   169   169   169   169   169   169   169   169   168   168   168   168   168   168   168   168   168   168   168   168   168   168   169   169   169   169   169   169   169   169   169   169   169   169   168   168   168   167   167   167   166   166   166   165   165   165   164   164   164   164   164   163   163   164   164   164   164
   161   162   162   163   164   166   167   168   169   170   171   172   172   173   173   173   173   173   173   173   172   172   171   171   170   170   169   169   169   169   169   169   169   169   170   170   171   171   172   172   173   174   174   175   175   175   175   175   175   175   175   174   173   173   172   170   169   168   167   166   164   163   162   161   161   160   160   159   159   159   160   160   161
   157   159   160   162   164   165   167   169   171   173   174   176   177   178   178   179   179   178   178   177   176   174   173   172   171   170   169   169   169   169   169   170   170   171   173   174   175   176   178   179   180   181   182   183   184   185   185   185   186   185   185   184   183   181   179   177   175   172   170   167   165   163   161   159   157   156   155   155   155   155   156   156   157
   155   157   159   161   163   165   168   170   172   175   177   179   180   182   182   183   183   182   181   180   178   176   174   172   170   169   168   168   168   168   170   171   173   175   178   180   182   184   185   187   189   190   192   193   194   196   197   197   198   198   197   196   194   192   189   186   182   178   174   171   167   163   160   157   155   154   153   152   152   152   153   154   155
   156   157   159   161   163   166   168   171   173   176   178   180   182   183   184   185   185   184   183   181   179   176   173   170   168   166   165   165   166   168   171   174   177   181   184   187   190   192   194   196   198   199   201   202   204   205   207   208   209   210   209   208   206   203   200   195   190   185   179   174   169   164   160   157   155   153   152   152   152   152   153   154   156
   159   160   162   163   165   167   169   171   173   175   177   179   181   183   184   185   185   185   183   181   178   175   171   168   165   163   162   162   164   168   172   177   182   187   191   195   198   200   201   202   204   205   206   208   210   212   214   216   218   219   219   218   216   213   208   203   197   190   183   177   171   166   161   158   156   155   155   155   155   156   157   158   159
   165   166   166   167   168   169   170   171   173   175   176   178   179   181   182   183   184   184   183   181   178   174   169   165   161   159   158   159   162   166   172   178   185   191   195   199   201   203   204   204   204   205   206   208   210   213   216   219   222   224   225   225   223   219   214   208   201   193   186   178   172   167   163   161   159   159   159   160   161   163   164   164   165
   172   171   171   171   171   171   171   172   173   174   175   176   177   178   179   180   181   182   182   180   177   173   168   163   158   155   153   154   158   163   170   177   184   190   194   197   199   199   199   198   198   199   200   202   205   209   213   217   221   224   226   226   225   222   217   210   202   194   186   179   173   168   165   163   163   164   166   168   169   171   171   172   172
   177   176   175   174   173   172   172   173   173   173   174   174   174   175   176   177   179   180   181   180   178   173   168   161   155   151   149   150   153   159   166   173   179   184   187   189   189   188   186   185   185   186   188   192   196   201   206   210   215   219   222   223   223   220   216   209   201   193   185   178   172   168   166   166   167   169   172   174   176   178   178   178   177
   181   179   177   175   174   173   173   173   173   173   173   173   172   172   173   174   176   179   180   181   179   174   168   161   154   149   146   146   149   153   159   164   169   172   173   173   171   170   168   167   168   170   174   179   184   190   195   201   206   211   215   217   218   217   213   207   199   191   183   177   172   169   168   168   170   173   177   180   182   183   183   183   181
   183   181   179   177   175   173   173   172   173   173   173   172   171   170   170   171   173   177   180   181   180   176   169   161   153   147   144   143   145   148   152   154   156   156   155   153   150   148   146   147   149   153   159   165   172   179   185   190   196   201   206   210   212   212   209   204   197   189   181   175   171   169   168   170   172   176   179   183   185   186   186   185   183
   186   184   182   180   177   175   174   173   173   173   172   171   170   168   168   168   171   174   178   180   180   176   170   162   154   147   144   142   143   144   145   145   143   139   136   132   129   127   126   128   132   138   146   154   162   169   175   180   186   191   198   204   208   209   207   202   196   188   181   175   171   169   169   170   173   177   180   184   186   188   188   187   186
   192   191   190   187   184   181   178   176   175   174   173   172   170   167   166   166   167   171   175   178   178   175   169   162   154   149   145   144   144   143   141   137   131   125   119   115   112   111   111   114   119   127   137   147   155   162   168   172   177   184   192   200   206   209   208   204   197   189   182   176   173   170   170   171   173   177   181   184   187   189   191   192   192
   203   204   204   202   198   193   188   183   180   177   175   173   171   168   165   164   165   168   172   175   176   173   168   162   156   152   149   148   147   144   139   132   123   115   108   104   102   102   103   107   113   121   131   142   151   158   163   166   172   179   189   199   208   213   213   208   201   193   186   180   176   173   172   172   174   177   181   186   190   194   197   200   203
   219   222   224   222   218   212   204   196   189   184   180   177   174   170   166   163   163   165   168   171   172   171   167   163   158   156   155   154   152   148   140   131   120   110   104   101   100   101   103   106   111   119   129   140   149   155   159   163   168   177   189   202   213   220   221   216   209   200   193   186   182   178   176   175   176   179   184   190   196   201   207   213   219
   239   245   249   248   244   236   226   215   204   195   189   184   179   175   169   165   163   163   166   169   170   169   167   164   161   161   161   160   158   152   143   131   120   110   105   103   104   106   108   110   113   119   128   138   146   153   157   161   168   178   193   209   222   230   232   227   219   210   202   195   190   185   182   180   180   184   189   196   204   212   221   230   239
   260   269   274   274   270   262   251   237   223   211   201   194   189   183   177   171   167   165   166   168   169   169   168   166   166   166   167   166   162   154   144   132   121   113   109   110   112   115   117   117   117   121   127   136   144   150   155   160   169   182   199   217   233   242   244   240   232   222   214   207   201   195   190   187   188   191   197   205   214   224   236   248   260
   278   289   295   297   293   286   275   260   244   229   217   208   201   195   188   180   174   170   169   170   170   171   170   170   171   172   172   170   164   154   143   131   122   116   114   117   121   125   126   124   122   123   127   134   141   148   154   161   171   187   206   226   244   255   258   254   246   236   228   221   214   208   202   198   198   201   208   216   225   236   249   264   278
   293   305   311   312   310   305   296   282   265   248   233   223   216   209   201   192   183   178   175   174   174   174   174   175   176   178   177   172   163   152   140   129   122   118   119   123   129   133   134   131   128   126   128   133   139   146   153   162   175   192   213   235   253   265   270   267   259   250   242   235   229   222   216   212   211   214   219   226   235   246   261   277   293
   304   316   321   321   319   317   311   300   284   265   250   239   232   225   216   205   194   186   181   179   178   178   179   180   183   184   182   174   162   148   135   126   121   120   123   128   134   140   142   139   134   131   130   134   139   145   153   164   179   198   219   241   260   274   279   278   271   263   255   249   244   238   232   227   226   228   232   237   244   254   269   287   304
   317   328   330   328   325   324   322   314   300   281   265   254   247   240   230   218   205   194   187   183   182   182   183   186   189   191   188   178   162   145   131   124   122   123   126   131   138   145   149   148   144   139   136   137   140   146   154   166   182   202   224   246   265   279   286   286   281   273   266   261   257   252   247   243   242   243   246   249   254   263   278   298   317
   335   346   346   340   334   333   333   328   315   297   279   268   260   253   243   229   213   199   190   185   184   184   187   191   197   201   198   186   166   145   131   125   125   128   131   135   141   149   156   158   155   150   145   142   142   146   154   167   185   205   226   247   267   281   290   292   287   280   273   269   267   265   262   259   258   260   261   262   266   275   292   314   335
   364   377   375   364   354   350   349   346   333   314   296   282   274   267   255   238   219   203   191   186   185   187   191   197   206   213   212   198   175   151   134   130   132   136   138   139   145   154   164   169   168   162   154   147   143   145   153   167   185   206   227   248   267   282   292   294   290   282   276   273   274   274   274   274   274   276   278   279   282   292   313   340   364
   407   424   422   406   390   380   377   372   358   338   317   301   291   282   268   248   226   206   192   186   186   189   196   205   217   228   229   216   189   161   142   139   143   147   147   146   149   159   171   178   179   172   161   150   142   141   148   163   183   205   227   248   266   282   292   294   289   281   276   275   277   281   284   286   289   293   297   300   305   318   343   376   407
   460   484   484   466   443   427   418   409   393   370   345   327   314   302   285   262   236   212   195   188   189   195   203   215   230   245   249   236   206   173   153   149   155   159   157   152   153   163   175   184   184   175   162   147   136   133   140   157   179   203   226   248   267   283   292   293   287   279   274   275   280   286   291   296   301   309   318   325   334   351   381   421   460
   515   548   554   537   509   486   470   457   438   412   384   361   344   329   309   283   253   224   204   196   198   206   215   228   244   261   268   255   222   185   161   158   165   170   165   158   156   163   175   182   181   170   154   137   125   121   129   147   172   200   226   250   270   285   293   292   285   277   273   276   283   291   298   304   313   325   339   352   366   387   421   467   515
   561   603   619   607   577   548   526   510   489   461   431   404   384   365   343   314   279   246   222   212   214   222   232   243   258   276   283   268   232   190   165   162   171   176   170   159   154   159   168   172   168   156   138   121   109   107   116   137   165   196   226   253   274   289   295   293   286   279   277   282   291   299   306   313   323   340   359   379   398   421   457   506   561
   587   639   665   660   633   601   577   560   540   513   482   453   429   409   385   354   317   279   250   236   236   243   251   258   269   283   288   271   232   187   160   158   169   176   169   156   148   149   153   154   147   133   117   102    92    91   103   125   156   191   226   256   280   294   299   296   290   285   287   294   304   311   316   323   334   354   378   403   425   448   481   529   587
   586   644   681   686   664   634   611   597   583   560   531   501   476   455   431   401   362   320   286   267   263   267   270   271   274   282   282   262   220   174   147   146   160   169   162   148   137   134   133   129   119   106    92    81    76    78    91   115   147   186   225   259   285   299   304   301   297   297   303   313   322   328   331   335   347   367   394   422   444   464   490   531   586
   559   617   662   677   663   639   622   615   610   595   570   542   518   497   476   447   409   365   325   299   290   288   284   276   270   269   264   241   198   153   127   129   146   157   151   136   123   116   111   103    91    80    71    65    63    68    82   105   139   179   221   259   287   303   307   307   307   312   323   336   345   349   349   351   361   381   408   435   456   469   483   511   559
   514   567   615   638   632   615   606   611   618   613   594   569   547   529   511   486   450   405   360   328   311   302   290   273   257   246   236   211   170   128   106   111   130   142   138   123   109    99    90    79    67    59    55    55    57    63    76    98   130   170   215   255   285   302   309   311   317   329   346   360   369   370   368   369   377   394   419   444   460   466   466   478   514
   464   507   553   579   579   569   571   588   607   612   600   578   558   543   530   510   477   432   385   346   321   305   285   259   234   216   201   177   140   104    88    96   117   130   126   111    95    83    72    60    50    46    47    51    55    61    72    91   120   160   204   246   278   297   306   314   326   344   364   380   388   388   386   386   393   407   428   449   462   460   449   445   464
   427   457   495   518   520   515   525   553   583   596   589   570   551   539   529   513   485   442   394   350   318   294   269   237   206   183   166   145   115    88    77    88   109   120   116   101    85    72    59    48    42    42    47    53    58    62    69    84   110   147   190   233   265   286   299   311   329   352   375   392   398   398   398   400   408   419   434   452   463   458   440   423   427
   416   432   458   473   471   468   482   517   554   572   566   548   529   517   508   495   471   432   385   339   302   273   244   210   177   153   137   121   100    81    76    89   107   116   110    94    78    64    52    43    40    44    52    58    61    62    66    77    98   132   173   215   248   271   287   304   326   351   375   390   396   398   401   408   418   427   438   453   465   464   446   423   416
   436   440   452   455   445   438   453   490   529   547   540   520   499   484   473   459   438   405   362   316   277   245   216   184   153   131   118   109    96    85    85    95   109   114   105    89    73    59    48    42    43    50    58    62    62    60    61    68    87   116   155   195   228   252   271   291   315   340   362   375   381   385   394   407   420   429   438   452   470   478   469   449   436
   483   479   478   466   445   432   444   478   514   529   518   494   469   448   431   414   394   366   329   288   249   217   190   163   138   120   112   107   102    97    98   105   113   113   102    85    68    55    46    43    47    55    62    63    60    56    55    60    75   102   137   174   207   232   253   274   297   320   338   349   354   361   376   396   413   422   430   447   473   496   503   494   483
   543   537   525   500   467   446   451   480   510   518   503   475   446   418   392   368   347   325   296   261   225   196   173   152   133   121   116   115   114   112   112   114   115   109    97    80    64    52    45    45    51    59    62    60    54    49    48    53    65    89   120   155   186   211   233   253   274   293   307   315   320   330   349   375   395   406   414   434   470   510   537   546   543
   598   594   576   541   498   468   467   489   512   515   497   468   434   399   363   331   308   290   269   242   211   185   167   152   140   131   127   126   126   124   120   116   111   102    89    75    61    50    45    47    54    59    60    54    47    43    42    46    57    77   106   138   167   192   213   232   249   264   273   278   283   295   318   346   370   381   390   412   456   512   560   588   598
   627   630   610   570   521   486   479   494   511   512   495   468   435   394   349   308   281   267   254   234   209   187   172   162   154   146   140   137   134   128   120   111   102    92    81    69    58    50    47    50    55    58    55    48    40    37    37    41    50    68    93   123   151   175   194   211   224   235   241   245   249   262   285   314   338   350   358   381   430   495   559   604   627
   619   629   612   572   522   485   474   485   499   501   490   470   441   399   348   299   269   257   252   239   218   198   185   177   170   160   149   141   133   124   112    99    87    78    72    65    58    52    50    53    57    57    51    42    36    34    35    37    44    59    82   110   137   159   177   191   202   209   214   217   222   234   256   283   304   315   322   344   391   458   529   585   619
   570   586   574   538   492   457   446   455   468   475   473   465   445   407   353   301   269   259   258   251   234   214   201   192   183   169   152   137   124   111    96    82    71    66    64    64    61    58    57    59    60    57    49    40    34    33    33    34    38    50    72    98   124   145   162   174   182   189   193   198   203   214   232   255   273   281   286   303   343   405   472   531   570
   488   507   501   473   433   403   393   401   416   430   440   446   439   408   357   305   273   265   268   264   248   228   212   201   187   169   146   126   109    93    77    64    56    56    61    66    67    67    66    66    64    58    49    40    35    33    31    29    30    41    61    87   112   133   148   159   167   173   179   185   191   201   215   232   246   252   255   265   294   341   397   449   488
   388   407   407   387   357   332   323   331   347   367   389   410   416   396   352   304   274   269   273   271   255   233   214   199   182   159   133   109    90    74    60    49    45    50    61    70    75    76    74    72    68    60    50    41    36    33    28    22    22    31    51    77   101   121   136   146   154   162   170   177   185   192   202   214   225   230   230   235   250   279   317   355   388
   289   306   310   299   277   258   250   255   271   294   324   356   374   365   331   290   265   262   268   265   249   226   204   186   167   142   115    91    72    59    48    40    40    49    63    75    82    82    80    76    70    60    50    41    36    31    23    15    12    22    42    68    92   112   125   136   145   153   162   171   179   186   192   201   209   214   214   213   217   227   245   267   289
   209   222   229   224   211   196   187   187   198   220   253   291   317   317   293   262   242   242   248   246   229   206   183   164   144   121    96    74    59    49    41    37    40    51    65    78    84    84    81    75    67    57    48    40    34    26    16     7     5    15    36    62    85   103   117   127   136   145   155   164   172   178   183   190   197   203   204   201   196   192   192   198   209
   158   167   175   176   168   156   144   138   141   157   186   223   251   257   242   219   206   208   215   213   198   175   154   136   119    99    78    62    51    44    40    39    42    53    66    77    81    80    75    68    60    52    43    36    29    21    10     0     0    12    34    59    80    97   109   120   129   137   146   155   162   168   173   179   187   194   199   196   188   174   162   155   158
   137   143   152   157   153   142   127   113   106   111   132   162   186   194   185   169   162   166   173   172   159   140   122   108    95    80    65    54    47    44    42    42    45    53    63    71    73    70    65    58    51    44    37    31    25    15     5     0     0    14    36    58    77    91   103   113   122   129   137   144   150   155   160   167   175   185   193   194   186   170   153   140   137
   138   143   153   160   159   149   131   111    94    88    97   115   132   137   131   120   117   122   129   130   120   106    93    83    75    66    57    50    47    46    44    43    45    50    57    61    62    58    52    47    41    37    32    28    21    13     4     0     5    20    40    59    74    86    96   106   114   121   126   131   136   141   147   154   163   174   184   189   186   174   157   143   138
   152   157   167   175   177   168   149   124   100    84    81    87    94    94    88    80    78    84    91    93    87    78    70    65    61    57    52    48    46    46    44    43    43    45    49    51    50    47    42    38    35    33    31    27    22    14     8     7    14    28    45    60    71    79    88    98   107   113   116   119   123   129   134   141   150   160   172   180   182   177   166   155   152
   165   170   180   189   193   186   169   144   116    94    81    76    74    69    61    53    52    57    63    66    64    59    56    54    54    52    49    46    44    43    41    39    38    39    42    43    42    40    37    35    34    34    33    31    26    20    16    17    24    37    49    58    64    71    79    89    99   105   108   110   114   119   125   131   138   146   156   166   173   174   170   166   165
   169   174   183   192   197   194   180   158   133   109    90    78    69    60    50    43    41    44    49    52    52    50    50    50    51    49    46    43    40    38    36    34    34    35    38    40    40    38    37    37    38    40    39    37    32    27    24    26    32    41    49    53    55    59    68    80    91    98   102   105   109   114   120   125   128   133   139   148   157   164   166   167   169
   161   166   173   181   186   186   178   162   141   120   102    87    75    64    53    46    43    44    47    50    50    50    50    50    50    47    43    39    35    32    30    29    31    34    38    41    42    42    42    43    45    47    47    44    38    33    30    31    36    41    43    43    42    46    55    69    82    92    98   103   108   115   120   124   124   123   125   131   140   148   155   158   161
   145   148   152   158   163   165   162   152   139   123   108    95    84    74    64    57    53    53    54    55    55    54    53    52    50    46    40    34    29    26    26    28    31    36    41    45    46    47    48    49    51    52    51    47    41    35    32    31    33    34    33    30    29    33    43    59    75    87    96   103   111   119   125   127   124   120   117   118   124   132   139   143   145
   128   128   128   130   134   137   137   133   126   116   107    98    90    83    76    70    67    66    65    64    62    60    57    54    49    43    37    30    26    24    25    29    34    40    45    48    49    50    50    50    51    51    49    44    38    31    27    25    24    23    20    16    16    21    34    51    69    84    95   105   115   124   131   133   129   122   115   112   113   119   124   127   128
   115   112   110   108   109   110   111   110   107   102    98    93    90    86    83    80    78    76    75    72    68    64    60    54    48    41    35    29    26    26    28    33    39    44    47    48    47    46    44    44    43    42    40    35    28    22    17    14    12    10     7     5     6    14    29    47    66    83    96   108   119   130   138   140   136   127   118   112   110   112   115   117   115
   112   108   102    98    95    93    92    90    88    85    83    82    81    82    82    83    82    81    79    75    71    65    59    53    46    40    34    31    29    30    34    38    42    45    45    43    39    34    31    28    27    26    24    19    14     8     4     1     0     0     0     0     3    13    29    48    67    84    98   111   123   134   143   146   142   134   125   117   114   114   115   115   112
   118   113   107   101    94    88    83    78    73    69    67    66    68    70    74    77    79    79    77    73    68    63    56    50    44    40    36    34    35    37    40    42    43    42    38    31    23    16    11     8     6     6     4     2     0     0     0     0     0     0     0     0     6    19    35    53    71    87   101   113   125   136   144   148   146   139   131   124   120   120   120   120   118
   129   126   121   113   104    95    84    74    65    57    52    50    51    54    59    64    67    69    69    66    62    57    51    46    42    39    38    39    40    42    44    44    41    35    27    16     5     0     0     0     0     0     0     0     0     0     0     0     0     0     0     4    15    29    45    62    78    92   104   115   125   134   141   145   144   140   134   129   126   126   128   130   129
   140   140   136   129   119   107    92    77    63    51    42    36    35    37    42    47    52    55    56    55    52    48    45    42    40    39    40    42    44    45    45    42    36    26    14     2     0     0     0     0     0     0     0     0     0     0     0     0     0     0     4    14    27    41    57    72    86    98   107   116   124   130   136   138   138   135   131   128   127   130   134   138   140
   145   148   147   141   132   118   101    83    65    48    35    27    22    22    26    30    35    39    41    41    40    39    37    36    36    37    39    42    44    45    43    38    29    18     5     0     0     0     0     0     0     0     0     0     0     0     0     0     0     6    15    25    38    52    67    80    92   102   109   115   120   125   127   128   127   125   122   121   122   126   132   139   145
   140   145   147   144   136   123   106    87    67    48    32    21    14    11    12    16    20    23    26    28    28    28    28    29    31    33    36    39    40    40    38    32    23    12     0     0     0     0     0     0     0     0     0     0     0     1     3     7    11    17    24    34    46    59    72    84    94   102   108   113   115   117   117   116   114   111   109   109   111   116   123   132   140
   126   132   136   135   129   118   103    85    66    47    31    18    10     5     4     5     8    11    14    16    17    18    20    21    24    26    30    32    34    33    31    26    18    10     1     0     0     0     0     0     0     0     4     8    12    14    16    18    20    24    31    39    49    60    71    82    91    98   103   106   108   108   106   104   100    97    94    94    96   101   108   117   126
   106   112   116   117   113   105    93    78    62    45    30    18     9     3     0     0     1     2     4     6     8     9    11    13    15    18    21    24    25    25    24    21    16    11     6     2     0     0     2     6    11    16    21    24    26    26    26    25    26    27    31    37    45    54    64    73    82    89    94    97    98    97    95    91    87    83    80    79    80    84    90    98   106
    85    90    94    95    93    87    78    67    54    41    29    18    10     4     0     0     0     0     0     0     1     2     3     5     7    10    12    14    16    17    17    17    15    14    13    12    13    15    19    23    27    31    33    34    34    32    30    27    26    25    27    31    36    43    52    60    68    75    80    84    85    85    83    79    75    71    68    66    66    69    73    78    85
    66    70    73    74    72    69    63    55    46    37    27    19    12     6     2     0     0     0     0     0     0     0     0     0     0     2     4     6     9    11    12    14    15    16    18    20    23    26    29    33    36    38    38    37    35    32    28    24    21    19    19    21    25    30    37    44    51    58    64    68    70    71    70    68    65    62    59    57    56    57    59    63    66
    54    55    57    57    56    54    50    45    39    32    26    20    14     9     5     2     0     0     0     0     0     0     0     0     0     0     0     1     3     5     8    11    13    16    19    22    26    29    32    34    35    35    35    32    29    25    20    16    13    10    10    10    13    17    23    29    35    42    47    52    55    57    58    57    56    54    52    50    49    49    50    52    54
    45    46    46    46    45    43    41    37    33    29    25    20    16    12     8     5     2     0     0     0     0     0     0     0     0     0     0     0     0     2     4     7    10    13    16    19    22    24    26    27    27    26    25    22    19    15    11     7     4     2     2     2     4     7    11    16    22    27    32    37    41    43    45    46    46    46    45    45    44    44    44    45    45
    39    39    39    38    37    36    34    32    29    26    23    20    17    14    11     8     5     3     1     0     0     0     0     0     0     0     0     0     0     0     1     3     6     8    10    12    13    15    15    16    15    14    13    10     8     5     2     0     0     0     0     0     0     1     4     8    12    16    21    25    28    31    34    36    37    38    39    39    39    39    39    39    39
    33    33    33    32    31    30    29    27    25    23    21    19    17    15    12    10     8     6     4     2     1     0     0     0     0     0     0     0     0     0     0     0     1     2     3     4     5     5     5     5     5     4     3     1     0     0     0     0     0     0     0     0     0     0     1     4     7    10    13    16    19    22    24    26    28    29    31    32    32    33    33    33    33
    25    25    25    24    24    23    22    21    20    19    18    16    15    13    12    11     9     8     6     5     4     3     2     1     1     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     2     3     5     7     9    11    13    15    16    18    19    21    22    23    24    24    25    25    25
    15    15    15    15    15    15    15    14    14    13    13    12    11    11    10     9     9     8     7     6     6     5     5     4     4     3     3     2     2     2     1     1     1     1     1     0     0     0     0     0     0     0     0     0     0     0     0     1     1     1     2     2     3     3     4     5     6     6     7     8     9    10    11    11    12    13    13    14    14    15    15    15    15


Not satisfied with the answer ?? ASK NOW

Frequently Asked Questions

MATLAB offers tools for real-time AI applications, including Simulink for modeling and simulation. It can be used for developing algorithms and control systems for autonomous vehicles, robots, and other real-time AI systems.

MATLAB Online™ provides access to MATLAB® from your web browser. With MATLAB Online, your files are stored on MATLAB Drive™ and are available wherever you go. MATLAB Drive Connector synchronizes your files between your computers and MATLAB Online, providing offline access and eliminating the need to manually upload or download files. You can also run your files from the convenience of your smartphone or tablet by connecting to MathWorks® Cloud through the MATLAB Mobile™ app.

Yes, MATLAB provides tools and frameworks for deep learning, including the Deep Learning Toolbox. You can use MATLAB for tasks like building and training neural networks, image classification, and natural language processing.

MATLAB and Python are both popular choices for AI development. MATLAB is known for its ease of use in mathematical computations and its extensive toolbox for AI and machine learning. Python, on the other hand, has a vast ecosystem of libraries like TensorFlow and PyTorch. The choice depends on your preferences and project requirements.

You can find support, discussion forums, and a community of MATLAB users on the MATLAB website, Matlansolutions forums, and other AI-related online communities. Remember that MATLAB's capabilities in AI and machine learning continue to evolve, so staying updated with the latest features and resources is essential for effective AI development using MATLAB.

Without any hesitation the answer to this question is NO. The service we offer is 100% legal, legitimate and won't make you a cheater. Read and discover exactly what an essay writing service is and how when used correctly, is a valuable teaching aid and no more akin to cheating than a tutor's 'model essay' or the many published essay guides available from your local book shop. You should use the work as a reference and should not hand over the exact copy of it.

Matlabsolutions.com provides guaranteed satisfaction with a commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been empanelled after extensive research and quality check.

Matlabsolutions.com provides undivided attention to each Matlab assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work done at the best price in industry.