Unrecognized table variable name 'act_y_ha'. in matlab code

3 vues (au cours des 30 derniers jours)
Devendra
Devendra le 6 Mar 2024
I am getting following error in my matlab code.
Error using {}
Unrecognized table variable name 'act_y_ha'.
Error in reg_all (line 20)
Y = df{:, var};
Below is matlab code
methods = {'OLS', 'RF'};
dependent_vars = {'act_y_ha', 'act_per_ha'};
for i = 1:length(methods)
method = methods{i};
for j = 1:length(dependent_vars)
var = dependent_vars{j};
% Define features excluding specific columns
features = df.Properties.VariableNames(~ismember(df.Properties.VariableNames, {'name', 'act_y_ha', 'act_per_ha', 'variety'}));
X = df{:, features};
Y = df{:, var};
  6 commentaires
Devendra
Devendra le 6 Mar 2024
Thank you so much it worked well. However, in next step it gives following error
Error using pca
Value of X must be a numeric array.
[coeff, score, ~, ~, explained] = pca(X);
in the code
Error using pca
Value of X must be a numeric array.
I request you to kindly suggest me how to fix it.
Dev
Stephen23
Stephen23 le 6 Mar 2024
Modifié(e) : Stephen23 le 6 Mar 2024
"I request you to kindly suggest me how to fix it."
The question I asked in my last comment was exactly because of this error. Because you did not answer my question or provide the clarification I asked for I will have to guess that you want only the t* variables in a numeric matrix:
df = readtable('input_file.csv')
df = 14x133 table
name t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 t23 t24 t25 t26 t27 t28 t29 t30 t31 t32 t33 t34 t35 t36 t37 t38 t39 t40 t41 t42 t43 t44 t45 t46 t47 t48 t49 t50 t51 t52 t53 t54 t55 t56 t57 t58 t59 t60 t61 t62 t63 t64 t65 t66 t67 t68 t69 t70 t71 t72 t73 t74 t75 t76 t77 t78 t79 t80 t81 t82 t83 t84 t85 t86 t87 t88 t89 t90 t91 t92 t93 t94 t95 t96 t97 t98 t99 t100 t101 t102 t103 t104 t105 t106 t107 t108 t109 t110 camp section ha cycle cutt variety plant_ratoon_month harvest_month age age_1 age_ha est total_cane est_ha act_y_ha diff_ha per_month total_FS est_per_ha act_per_ha per_ha_month field_yield ________ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _______ _____________ ____________ _____ ______ _______ _____________ __________________ _____________ ____ _____ ______ ______ __________ ______ ________ _______ _________ ________ __________ __________ ____________ ___________ {'AE20'} 0.49475 0.49475 0.49475 0.49475 0.49475 0.49475 0.50442 0.4387 0.60448 0.99377 0.78624 0.89373 1.0077 0.7706 1.5816 1.7354 2.045 2.9111 2.6123 2.3134 2.1987 2.1938 2.4193 2.4788 2.6795 2.8166 2.6873 3.1771 2.7784 2.7609 2.4831 2.6814 2.8805 2.6282 2.1415 2.327 2.3199 1.8451 2.6982 2.453 2.4585 2.6247 2.4188 2.3113 1.6948 1.9009 2.2179 2.4674 2.2725 2.3077 1.8214 1.8418 1.8895 1.4262 1.7712 1.2614 1.507 1.6251 1.9118 2.1984 2.8093 2.345 2.2246 2.5059 2.3451 2.0914 1.8899 1.9564 1.7359 1.73 1.9241 1.7433 1.6498 2.0282 1.8721 1.8749 1.9623 1.9547 1.8837 1.8338 1.6194 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 1.628 {'2018/2019'} {'Abadir C'} 8.5 {'A1'} {'I' } {'NCO334' } 01.03.2017 01.01.2019 21.6 22 187 14586 8719 1716 1026 -690.2 47 1008.8 188.8 118.7 5.4 11.57 {'AE21'} 0.28461 0.32701 0.41774 0.67997 0.77307 0.86616 1.1605 0.9329 1.4759 2.6089 2.8058 1.9461 1.9023 1.7505 2.2234 2.1071 2.6139 3.9655 3.8667 3.7679 3.36 3.2219 3.828 3.4658 3.3192 3.4772 3.3286 3.5944 3.1308 2.8877 2.4723 2.7339 2.8816 2.6016 2.0162 2.2566 2.2514 1.7181 2.4502 2.2825 2.2491 2.4426 2.4465 2.2367 1.6244 2.04 2.3644 2.7197 2.6837 2.7013 1.9267 2.1791 2.1569 1.4824 1.9134 1.278 1.6447 1.862 2.1204 2.3789 2.9595 2.6736 2.8735 2.8821 2.8963 2.6692 2.336 2.5583 2.5302 2.5733 2.7864 2.2745 2.0477 2.32 2.2067 2.1007 1.9722 2.0061 1.8 1.7117 1.3873 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 1.3325 {'2018/2019'} {'ABADIR C'} 14.5 {'A1'} {'I' } {'CO740' } 01.01.2017 01.01.2019 23.5 24 348 26448 23962 1824 1653 -171.4 69 2739 200.6 188.9 7.9 11.43 {'AE16'} 0.47585 0.47585 0.47585 0.47585 0.47585 0.47585 0.47585 0.47585 0.76919 1.4878 0.7782 0.89519 0.94308 1.0483 1.3417 1.4828 1.991 3.1517 2.9532 2.7546 2.7127 3.0586 3.2745 2.8297 2.655 3.0199 3.0061 3.3081 2.7973 2.7762 2.3688 2.5984 2.6387 2.4776 1.9735 2.2475 2.3082 2.409 2.5097 2.2263 2.1196 2.3604 2.328 2.0385 1.5576 1.9075 2.2396 2.5379 2.4189 2.5191 1.7815 2.0422 2.0183 1.4068 1.7926 1.2346 1.6043 1.7636 2.0625 2.3615 2.6993 2.4554 2.3101 2.4623 2.2857 2.0543 1.9429 2.1807 2.1992 2.2855 2.5755 2.1511 2.0355 2.6317 2.4836 2.498 2.327 2.5816 2.2006 2.3924 2.0795 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 1.9002 {'2018/2019'} {'Abadir C'} 20.8 {'B1'} {'I' } {'NCO334' } 01.04.2017 01.01.2019 20.6 21 436.8 38875 28828 1869 1386 -483 66 3307.5 205.6 159 7.6 11.47 {'OR16'} 0.9407 0.9407 0.9407 0.79916 0.95716 1.1152 1.1867 1.3019 1.4576 1.7053 2.2609 1.8209 1.8364 1.744 2.0952 1.9979 1.8098 3.4482 3.3782 3.3082 2.9892 2.9939 3.2779 2.9736 2.855 3.059 2.7612 2.8947 2.5127 2.305 2.0448 2.1527 2.1251 1.9249 1.55 1.5925 1.5969 1.6298 1.6627 1.6192 1.5829 1.6356 1.6773 1.5273 1.188 1.352 1.5644 1.7462 1.6893 1.6932 1.4059 1.4763 1.4658 1.0439 1.3376 1.0244 1.1442 1.1158 1.291 1.4662 1.6782 1.7122 1.8479 1.9836 1.8932 1.8154 1.7284 1.7984 1.7268 1.8561 1.9132 1.6239 1.4861 1.7691 1.6328 1.6061 1.4919 1.517 1.3501 1.2642 1.0373 0.96204 0.93913 0.80101 0.93886 0.75525 0.68983 0.68988 0.68988 0.68988 0.68988 0.68988 0.68988 0.68988 0.68988 0.68988 0.68988 0.68988 0.68988 0.68988 0.68988 0.68988 0.68988 0.68988 0.68988 0.68988 0.68988 0.68988 0.68988 0.68988 {'2018/2019'} {'Abadir C'} 16.8 {'B2'} {'V' } {'CO740' } 01.02.2017 01.02.2019 23.5 24 403.2 27418 6108 1632 364 -1268.4 15 532.6 179.5 31.7 1.3 8.72 {'AE3' } 0.26541 0.3448 0.44478 0.53723 0.76786 0.9985 0.73736 0.66928 0.83144 1.2395 1.5916 1.5238 1.1825 1.2076 1.9783 2.1358 1.1088 3.2374 3.3078 3.3782 3.3259 3.1834 3.8306 3.6623 3.3851 3.4891 3.4514 3.6706 3.2044 2.8618 2.7001 3.1558 2.9246 2.7465 2.243 2.3831 2.3289 2.0489 2.5533 2.4645 2.3965 2.6504 2.543 2.2874 1.6561 1.8838 2.2851 2.5313 2.3877 2.1491 1.8627 2.0793 2.087 1.5242 1.9778 1.3718 1.8638 2.0402 2.3597 2.6792 3.0573 2.8064 1.7363 2.955 2.7626 2.5692 2.5344 2.7253 2.7037 2.6652 2.809 2.5659 2.2831 2.6707 2.4912 2.3474 2.2913 2.2377 2.0795 1.9955 1.6989 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 1.5838 {'2018/2019'} {'ABADIR C'} 25.7 {'B1'} {'I' } {'NCO334' } 01.01.2017 01.01.2019 23.5 24 616.8 53045 44705 2064 1739 -324.5 72 5365.5 227 208.8 8.7 12 {'A3' } 0.39405 0.39405 0.39405 0.39405 0.39405 0.39405 0.39405 0.39405 0.38617 0.45417 0.63369 0.66032 0.7939 0.88832 1.3229 1.3785 1.4864 2.2552 2.3234 2.6791 2.6618 2.8528 3.3668 3.0632 3.0654 3.4701 3.0694 3.3552 3.1819 2.7442 2.7453 2.9487 3.0788 2.8237 2.32 2.4598 2.5291 2.0529 2.6855 2.4739 2.2787 2.2422 2.2778 1.9592 1.4706 1.6286 2.0569 2.3261 2.1159 2.0425 1.753 1.9191 1.9371 1.3234 1.6981 1.1377 1.6095 1.6349 1.8948 2.1548 2.5841 2.4932 2.5806 2.668 2.5417 2.3774 2.2641 2.297 2.2703 2.3205 2.3505 2.1521 1.9093 2.3476 2.4758 2.2385 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 2.4092 {'2018/2019'} {'SOUTH' } 2.2 {'A0'} {'I' } {'Mex54-245'} 01.04.2017 01.12.2018 19.6 20 44 3212 4604 1460 2093 632.7 105 512.9 160.6 233.1 11.7 11.14 {'OR2' } 0.48478 0.48478 0.48478 0.66854 0.78173 0.89492 0.60628 0.44606 0.6864 1.8902 2.0836 1.9351 1.8533 1.9377 1.9466 1.9345 2.7903 3.6461 3.6085 3.5709 3.3997 3.3168 3.733 3.4682 3.3365 3.5727 3.3908 3.5538 3.0709 2.7508 2.7288 2.9713 2.9412 2.7829 2.2865 2.4763 2.4732 2.1682 2.6926 2.4173 2.3708 2.5948 2.4717 2.2324 1.7313 2.0245 2.3934 3.0229 2.8253 2.6017 2.0726 2.4163 2.4116 1.6611 2.3065 1.4028 2.1029 2.2992 2.6682 3.0372 3.6664 3.2055 3.3764 3.5473 3.3559 3.0922 3.0461 3.299 3.2747 3.2696 3.1156 2.9615 2.6102 3.1408 2.8415 2.6716 2.5967 2.5638 2.3011 2.3089 1.9338 1.784 1.8502 1.5793 1.4165 1.233 1.0824 1.0995 1.0954 1.0199 0.6718 0.32365 0.32365 0.32365 0.32365 0.32365 0.32365 0.32365 0.32365 0.32365 0.32365 0.32365 0.32365 0.32365 0.32365 0.32365 0.32365 0.32365 0.32365 0.32365 {'2018/2019'} {'ABADIR C'} 17.8 {'B2'} {'I' } {'NCO334' } 01.02.2017 01.03.2019 24.5 25 445 37594 38435 2112 2159 47.3 86 4762.6 232.3 267.6 10.7 12.39 {'A11' } 0.51941 0.51941 0.51941 0.51941 0.51941 0.51941 0.51941 0.51941 0.51941 0.51941 0.69737 0.71815 0.86314 1.0498 1.343 1.557 1.9266 1.6097 1.6176 2.1849 2.1755 2.5871 2.5316 2.2025 1.9138 1.7043 1.7418 2.3388 2.3078 1.9403 2.0705 2.2101 2.3868 2.3715 1.9321 2.1198 2.2159 1.8977 2.5993 2.6288 2.6631 2.8065 2.259 2.4375 1.7355 2.3259 2.8931 3.0975 2.8087 2.6048 2.097 2.167 2.1083 1.4805 1.8779 1.3251 1.7191 1.6894 2.0156 2.3417 2.9146 2.7059 2.8092 2.9124 2.7185 2.3804 2.2456 2.3662 2.2609 1.9523 2.3889 2.2733 2.1245 2.7403 2.8053 2.5068 2.5767 2.6244 2.7308 2.4438 2.0423 2.1042 2.1007 1.8273 1.5658 1.4785 1.1126 1.2041 1.0983 0.89523 0.90492 0.7152 0.71422 0.71011 0.65893 0.61927 0.61927 0.61927 0.61927 0.61927 0.61927 0.61927 0.61927 0.61927 0.61927 0.61927 0.61927 0.61927 0.61927 0.61927 {'2018/2019'} {'SOUTH' } 6.4 {'A0'} {'I' } {'Mex54-245'} 01.05.2017 01.04.2019 22.6 23 147.2 11334 7567 1771 1182 -588.7 51 752.9 194.8 117.6 5.1 9.95 {'B12' } 1.4103 1.4103 1.4103 1.4103 1.4103 1.4103 1.4103 1.4103 1.4103 1.4103 0.38193 0.66301 0.94734 1.1732 1.6379 1.6965 1.5684 3.176 2.7397 2.8572 2.6774 2.4432 2.9591 2.8309 2.8826 3.2231 3.0035 3.2312 2.9552 2.4113 2.4668 2.6511 2.7634 2.5018 2.087 2.3398 2.2459 1.842 2.6137 2.4822 2.3071 2.3694 2.2047 2.1368 1.574 1.8496 2.2712 2.3253 2.1218 2.0725 1.8051 1.8416 1.8312 1.3386 1.7736 1.1496 1.5 1.4533 1.6621 1.871 2.2284 2.2085 2.3361 2.4637 2.2818 2.154 1.9942 1.9429 1.8028 1.9353 2.0744 1.9842 1.792 2.2226 2.3153 2.2228 2.3632 2.3153 2.3172 2.1225 1.7712 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 1.7416 {'2018/2019'} {'South' } 4.5 {'B1'} {'III'} {'B41227' } 01.05.2017 01.01.2019 19.7 20 90 6300 5698 1400 1266 -133.8 63 643.3 154 143 7.1 11.29 {'OR3' } 0.34928 0.34928 0.34928 0.34928 0.34928 0.34928 0.50981 0.71287 1.118 2.199 2.1865 1.9282 1.8743 1.8707 2.0804 2.0319 2.7825 3.5331 3.5709 3.6087 3.371 3.3006 3.6544 3.393 3.2223 3.236 3.0035 3.2118 2.7714 2.2779 2.1696 2.3718 2.3421 2.2249 1.8969 2.0117 1.961 1.7952 2.2164 2.0138 2.0467 2.3744 2.3062 2.1758 1.7657 2.1282 2.5904 3.0754 2.9258 2.5429 2.162 2.3868 2.2866 1.5043 2.0812 1.9508 1.8204 1.9872 2.3102 2.6333 3.1489 2.9497 3.09 3.2304 3.0003 2.8797 2.6979 3.0549 3.0663 3.0938 2.9776 2.909 2.6422 3.3721 3.1173 3.0591 2.9189 2.999 2.7193 2.7837 2.3255 2.0727 2.2549 1.9373 1.7611 1.4898 1.2814 1.3065 1.3065 1.3065 1.3065 1.3065 1.3065 1.3065 1.3065 1.3065 1.3065 1.3065 1.3065 1.3065 1.3065 1.3065 1.3065 1.3065 1.3065 1.3065 1.3065 1.3065 1.3065 1.3065 {'2018/2019'} {'Abadir C'} 13.3 {'B2'} {'IV' } {'NCO334' } 01.03.2017 01.02.2019 22.6 23 305.9 21413 21706 1610 1632 22 71 2705.7 177.1 203.4 8.8 12.47 {'B13' } 1.6486 1.6486 1.6486 1.6486 1.6486 1.6486 1.6486 1.6486 1.6486 1.6486 0.45379 0.67823 0.87577 1.101 1.5971 1.6018 1.3762 2.5873 2.1067 3.2193 2.8978 2.7817 3.428 3.2372 3.2144 3.8049 3.5412 3.6605 3.2656 2.6904 2.7633 2.9189 2.9704 2.6374 2.1763 2.0278 1.9294 1.6748 1.9623 1.8402 1.8252 1.9926 1.9729 1.9787 1.6248 1.9639 2.4211 3.0792 2.7986 2.6728 2.2744 2.3989 2.4049 1.5779 2.0659 1.2949 1.6607 1.6818 1.9792 2.2765 2.7897 2.5812 2.754 2.9269 2.7725 2.4563 2.427 2.6471 2.6461 2.943 2.9769 2.6566 2.3102 2.8968 3.0047 2.5673 2.8257 2.5326 2.5929 2.3039 1.8172 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 1.7872 {'2018/2019'} {'South' } 3.4 {'B1'} {'IV' } {'Mex54-245'} 01.05.2017 01.01.2019 19.7 20 68 4624 5500 1360 1618 257.6 81 645.7 149.6 189.9 9.5 11.74 {'AE1' } 0.38417 0.38417 0.38417 0.38417 0.38417 0.38417 0.38417 0.38417 0.39191 0.65918 0.92001 0.84192 1.0536 0.84109 1.7296 1.8891 1.0126 3.2554 3.1455 3.0355 2.8234 2.9701 3.7341 3.4071 3.2583 3.7317 3.7917 3.787 3.2325 3.1079 2.8046 3.2851 3.2601 3.0761 2.3858 2.6981 2.614 2.234 2.7448 2.4899 2.4789 2.5933 2.4885 2.2851 1.6551 2.0232 2.3295 2.4245 2.3536 2.0658 1.7779 2.0476 2.0548 1.4496 1.8437 1.3333 1.7259 1.9493 2.2181 2.4868 3.0054 2.6704 1.9569 3.0191 2.8485 2.7734 2.7146 2.8933 2.8953 2.9165 3.2312 2.7379 2.4001 2.9918 2.826 2.9406 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 2.6666 {'2018/2019'} {'Abadir C'} 13.27 {'B2'} {'I' } {'Mex54-245'} 01.04.2017 01.12.2018 19.6 20 265.4 24417 28625 1840 2157 317.1 108 3293.8 202.4 248.2 12.4 11.51 {'B5' } 2.1539 2.1539 2.1539 2.1539 2.1539 2.1539 2.1539 2.1539 2.1539 2.1539 0.55472 0.68714 0.82895 1.0001 1.3396 1.3895 1.4759 2.4116 2.1119 2.2907 2.2306 1.9655 2.2301 2.1532 2.3335 2.5794 2.3099 2.6391 2.5372 2.1508 2.1443 2.2324 2.2617 2.1376 1.717 1.7481 1.758 1.4541 1.5819 1.5103 1.3969 1.4602 1.4722 1.4246 1.0984 1.2756 1.5031 1.6898 1.7076 1.6531 1.5564 1.6837 1.6144 1.1825 1.4785 1.1365 1.3807 1.4079 1.6678 1.9277 2.26 2.3097 2.4195 2.5292 2.2789 2.2182 1.9418 1.9849 1.9093 1.9642 2.1441 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 1.9363 {'2018/2019'} {'SOUTH' } 4.9 {'B1'} {'III'} {'C86/56' } 01.05.2017 01.11.2018 17.7 18 88.2 6350.4 6729 1296 1373 77.3 76 709.1 142.6 144.7 8 10.54 {'B7' } 1.5632 1.5632 1.5632 1.5632 1.5632 1.5632 1.5632 1.5632 1.5632 1.5632 0.77469 0.94447 0.98601 1.0259 1.6131 1.6688 1.988 3.525 3.308 2.9806 2.5583 2.3495 2.5788 2.4497 2.622 3.1138 2.8555 3.2198 3.105 2.3871 2.6484 2.8285 2.9763 2.6618 2.2173 2.2305 2.2971 1.9919 2.3796 2.2353 2.2111 1.9141 1.9604 1.9556 1.3446 1.6137 1.8964 1.9821 1.8846 1.7863 1.5779 1.9099 1.8782 1.3444 1.6823 1.2347 1.4578 1.4434 1.6913 1.9392 2.211 2.245 2.3635 2.4819 2.4147 2.1143 2.086 2.2349 2.1175 1.917 2.08 1.8973 1.8801 2.3516 2.4221 2.1946 2.4794 2.3678 2.557 2.284 2.0264 2.2038 2.1579 2.0454 1.632 1.7541 1.4071 1.6488 1.6488 1.6488 1.6488 1.6488 1.6488 1.6488 1.6488 1.6488 1.6488 1.6488 1.6488 1.6488 1.6488 1.6488 1.6488 1.6488 1.6488 1.6488 1.6488 1.6488 1.6488 1.6488 {'2018/2019'} {'SOUTH' } 7.7 {'C2'} {'VI' } {'NCO334' } 01.05.2017 01.02.2019 20.7 21 161.7 10510 12643 1365 1642 276.9 78 1472.7 150.2 191.3 9.1 11.65
dependent_vars = {'act_y_ha', 'act_per_ha'};
for jj = 1:numel(dependent_vars)
var = dependent_vars{jj};
pat = "t"+digitsPattern;
X = df{:, pat}
Y = df{:, var}
end
X = 14x110
0.4948 0.4948 0.4948 0.4948 0.4948 0.4948 0.5044 0.4387 0.6045 0.9938 0.7862 0.8937 1.0077 0.7706 1.5816 1.7354 2.0450 2.9111 2.6123 2.3134 2.1987 2.1938 2.4193 2.4788 2.6795 2.8166 2.6873 3.1771 2.7784 2.7609 0.2846 0.3270 0.4177 0.6800 0.7731 0.8662 1.1605 0.9329 1.4759 2.6089 2.8058 1.9461 1.9023 1.7505 2.2234 2.1071 2.6139 3.9655 3.8667 3.7679 3.3600 3.2219 3.8280 3.4658 3.3192 3.4772 3.3286 3.5944 3.1308 2.8877 0.4759 0.4759 0.4759 0.4759 0.4759 0.4759 0.4759 0.4759 0.7692 1.4878 0.7782 0.8952 0.9431 1.0483 1.3417 1.4828 1.9910 3.1517 2.9532 2.7546 2.7127 3.0586 3.2745 2.8297 2.6550 3.0199 3.0061 3.3081 2.7973 2.7762 0.9407 0.9407 0.9407 0.7992 0.9572 1.1152 1.1867 1.3019 1.4576 1.7053 2.2609 1.8209 1.8364 1.7440 2.0952 1.9979 1.8098 3.4482 3.3782 3.3082 2.9892 2.9939 3.2779 2.9736 2.8550 3.0590 2.7612 2.8947 2.5127 2.3050 0.2654 0.3448 0.4448 0.5372 0.7679 0.9985 0.7374 0.6693 0.8314 1.2395 1.5916 1.5238 1.1825 1.2076 1.9783 2.1358 1.1088 3.2374 3.3078 3.3782 3.3259 3.1834 3.8306 3.6623 3.3851 3.4891 3.4514 3.6706 3.2044 2.8618 0.3940 0.3940 0.3940 0.3940 0.3940 0.3940 0.3940 0.3940 0.3862 0.4542 0.6337 0.6603 0.7939 0.8883 1.3229 1.3785 1.4864 2.2552 2.3234 2.6791 2.6618 2.8528 3.3668 3.0632 3.0654 3.4701 3.0694 3.3552 3.1819 2.7442 0.4848 0.4848 0.4848 0.6685 0.7817 0.8949 0.6063 0.4461 0.6864 1.8902 2.0836 1.9351 1.8533 1.9377 1.9466 1.9345 2.7903 3.6461 3.6085 3.5709 3.3997 3.3168 3.7330 3.4682 3.3365 3.5727 3.3908 3.5538 3.0709 2.7508 0.5194 0.5194 0.5194 0.5194 0.5194 0.5194 0.5194 0.5194 0.5194 0.5194 0.6974 0.7181 0.8631 1.0498 1.3430 1.5570 1.9266 1.6097 1.6176 2.1849 2.1755 2.5871 2.5316 2.2025 1.9138 1.7043 1.7418 2.3388 2.3078 1.9403 1.4103 1.4103 1.4103 1.4103 1.4103 1.4103 1.4103 1.4103 1.4103 1.4103 0.3819 0.6630 0.9473 1.1732 1.6379 1.6965 1.5684 3.1760 2.7397 2.8572 2.6774 2.4432 2.9591 2.8309 2.8826 3.2231 3.0035 3.2312 2.9552 2.4113 0.3493 0.3493 0.3493 0.3493 0.3493 0.3493 0.5098 0.7129 1.1180 2.1990 2.1865 1.9282 1.8743 1.8707 2.0804 2.0319 2.7825 3.5331 3.5709 3.6087 3.3710 3.3006 3.6544 3.3930 3.2223 3.2360 3.0035 3.2118 2.7714 2.2779
Y = 14x1
1026 1653 1386 364 1739 2093 2159 1182 1266 1632
X = 14x110
0.4948 0.4948 0.4948 0.4948 0.4948 0.4948 0.5044 0.4387 0.6045 0.9938 0.7862 0.8937 1.0077 0.7706 1.5816 1.7354 2.0450 2.9111 2.6123 2.3134 2.1987 2.1938 2.4193 2.4788 2.6795 2.8166 2.6873 3.1771 2.7784 2.7609 0.2846 0.3270 0.4177 0.6800 0.7731 0.8662 1.1605 0.9329 1.4759 2.6089 2.8058 1.9461 1.9023 1.7505 2.2234 2.1071 2.6139 3.9655 3.8667 3.7679 3.3600 3.2219 3.8280 3.4658 3.3192 3.4772 3.3286 3.5944 3.1308 2.8877 0.4759 0.4759 0.4759 0.4759 0.4759 0.4759 0.4759 0.4759 0.7692 1.4878 0.7782 0.8952 0.9431 1.0483 1.3417 1.4828 1.9910 3.1517 2.9532 2.7546 2.7127 3.0586 3.2745 2.8297 2.6550 3.0199 3.0061 3.3081 2.7973 2.7762 0.9407 0.9407 0.9407 0.7992 0.9572 1.1152 1.1867 1.3019 1.4576 1.7053 2.2609 1.8209 1.8364 1.7440 2.0952 1.9979 1.8098 3.4482 3.3782 3.3082 2.9892 2.9939 3.2779 2.9736 2.8550 3.0590 2.7612 2.8947 2.5127 2.3050 0.2654 0.3448 0.4448 0.5372 0.7679 0.9985 0.7374 0.6693 0.8314 1.2395 1.5916 1.5238 1.1825 1.2076 1.9783 2.1358 1.1088 3.2374 3.3078 3.3782 3.3259 3.1834 3.8306 3.6623 3.3851 3.4891 3.4514 3.6706 3.2044 2.8618 0.3940 0.3940 0.3940 0.3940 0.3940 0.3940 0.3940 0.3940 0.3862 0.4542 0.6337 0.6603 0.7939 0.8883 1.3229 1.3785 1.4864 2.2552 2.3234 2.6791 2.6618 2.8528 3.3668 3.0632 3.0654 3.4701 3.0694 3.3552 3.1819 2.7442 0.4848 0.4848 0.4848 0.6685 0.7817 0.8949 0.6063 0.4461 0.6864 1.8902 2.0836 1.9351 1.8533 1.9377 1.9466 1.9345 2.7903 3.6461 3.6085 3.5709 3.3997 3.3168 3.7330 3.4682 3.3365 3.5727 3.3908 3.5538 3.0709 2.7508 0.5194 0.5194 0.5194 0.5194 0.5194 0.5194 0.5194 0.5194 0.5194 0.5194 0.6974 0.7181 0.8631 1.0498 1.3430 1.5570 1.9266 1.6097 1.6176 2.1849 2.1755 2.5871 2.5316 2.2025 1.9138 1.7043 1.7418 2.3388 2.3078 1.9403 1.4103 1.4103 1.4103 1.4103 1.4103 1.4103 1.4103 1.4103 1.4103 1.4103 0.3819 0.6630 0.9473 1.1732 1.6379 1.6965 1.5684 3.1760 2.7397 2.8572 2.6774 2.4432 2.9591 2.8309 2.8826 3.2231 3.0035 3.2312 2.9552 2.4113 0.3493 0.3493 0.3493 0.3493 0.3493 0.3493 0.5098 0.7129 1.1180 2.1990 2.1865 1.9282 1.8743 1.8707 2.0804 2.0319 2.7825 3.5331 3.5709 3.6087 3.3710 3.3006 3.6544 3.3930 3.2223 3.2360 3.0035 3.2118 2.7714 2.2779
Y = 14x1
118.7000 188.9000 159.0000 31.7000 208.8000 233.1000 267.6000 117.6000 143.0000 203.4000

Connectez-vous pour commenter.

Réponses (0)

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by