Inserting a data (3 variables) into a MATLAB Table
이전 댓글 표시
Hi, I'm new to MATLAB (two days) and I'm having a hard-time understanding who to insert a new row into a MATLAB Table?
I'm writing a LOOP routine that will scan a Table and return a data-set to me. The command that I'm using is below:
>> dataDTL = readExcelData{cellStartPosition:cellGroupCount,{'Year', 'Month','Corporate1','Goverment1','Junk1'}};;;
* You can see the result of this command at the end of this message.
I then do a sum against this scan, which returns three values.
loopSum = sum(dataDTL)
The SUM command generates three values: *34.3340 32.0250 39.4020
I want to take this data set and insert it into a MATLAB Table (a new row) and then continue the Loop, which will generate hundreds of these entries.
Take Care, Buck McCune PMP
Data Scan Output
>> dataDTL = readExcelData{cellStartPosition:cellGroupCount,{'Corporate1','Goverment1','Junk1'}};;; >> dataDTL
dataDTL =
0.4990 0.4690 0.7650
0.2860 0.2300 0.5290
0.1140 -0.0390 -0.0510
0.9040 0.8170 0.7120
0.7350 0.6820 1.1680
0.7520 0.6890 0.9910
1.2530 1.0990 0.8780
0.0760 0.0920 0.4540
0.8110 0.7590 0.6840
0.6850 0.7430 0.2370
0.1700 0.2430 1.2870
0.6490 0.6830 0.6810
1.0360 0.9710 0.8300
0.1040 0.0860 0.2660
0.5140 0.4070 0.7180
0.5240 0.4680 0.6290
0.6070 0.5330 0.6090
0.5250 0.5200 0.5970
0.5210 0.4680 0.7170
0.8280 1.2570 -2.0130
1.3270 1.3250 -0.3600
0.2000 0.4910 -0.3740
0.3380 -0.0870 2.0180
0.4630 0.3530 0.6260
0.5160 0.3960 -0.0040
-0.2870 -0.4880 -0.0010
0.9290 0.6950 0.7250
0.4230 0.3220 1.4810
-0.1080 -0.0640 0.2980
0.2890 0.3120 0.6460
0.2410 0.3170 1.0120
0.1120 0.2890 0.7150
0.8210 0.6500 0.3640
0.3470 0.2660 0.0290
0.2680 0.1890 0.1760
0.2910 0.1430 -0.6190
-0.0070 -0.0370 0.2530
0.7320 0.6660 -0.2680
0.5940 0.6200 -0.7220
-0.0320 0.2600 -0.6720
0.2790 0.4110 0.8060
1.1900 1.0380 2.2460
0.8510 0.6320 1.3510
0.7820 0.7390 0.9900
0.9470 0.7180 2.5540
-0.0220 0.5370 -2.0630
0.9830 0.9460 -0.7090
1.0690 1.1930 2.4060
1.5900 1.2530 5.8140
0.7400 0.6500 3.4020
1.0470 0.8340 1.5150
0.2620 0.2670 0.4120
0.8330 0.5640 2.9200
0.4430 0.3400 -0.0410
1.4730 1.1220 1.8820
0.7420 0.5760 1.2480
1.2770 1.6460 -3.4980
0.9270 0.9450 -0.7880
-0.2200 -0.2160 2.4730
0.0910 0.0350 0.4710
답변 (1개)
Peter Perkins
2015년 4월 16일
0 개 추천
Buck, you've said "MATLAB Table" which sounds like you mean the data type called table. But there's nothing involving tables in your post. I think you need to give a short example showing exactly what you want to do.
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!