Skip to content

Commit 9ad06dd

Browse files
committed
🔄 synced local 'matlabfiles/' with remote 'matlabMfiles/'
1 parent c1a94a8 commit 9ad06dd

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

matlabfiles/Errata_Corrige.mlx

81 Bytes
Binary file not shown.

matlabfiles/capImportazioni/Sole24Ore.m

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,19 @@
2828
X1.Properties.RowNames=X1{:,1};
2929
X1=X1(:,2:end);
3030

31+
32+
%% Parte non nel libro: scaricamento dati 2024
33+
!git clone https://github.com/IlSole24ORE/QDV2024.git
34+
35+
%% Caricamento dataset 2024 in MATLAB
36+
nomeCartella='QDV2024';
37+
nomeFile='20241216_QDV2024_001.csv';
38+
X=readtable([nomeCartella filesep nomeFile]);
39+
40+
%% Creazione della table contenente la matrice dei dati province x variabili
41+
Xsel=X(:,["DENOMINAZIONECORRENTE" "VALORE","INDICATORE"]);
42+
X1=unstack(Xsel,"VALORE","INDICATORE");
43+
44+
% La prima colonna di X1 deve diventare i nomi delle righe
45+
X1.Properties.RowNames=X1{:,1};
46+
X1=X1(:,2:end);

0 commit comments

Comments
 (0)