-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIndivComPrices.m
558 lines (489 loc) · 23.9 KB
/
IndivComPrices.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
function varargout = IndivComPrices(varargin)
% INDIVCOMPRICES MATLAB code for IndivComPrices.fig
% INDIVCOMPRICES, by itself, creates a new INDIVCOMPRICES or raises the existing
% singleton*.
%
% H = INDIVCOMPRICES returns the handle to a new INDIVCOMPRICES or the handle to
% the existing singleton*.
%
% INDIVCOMPRICES('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in INDIVCOMPRICES.M with the given input arguments.
%
% INDIVCOMPRICES('Property','Value',...) creates a new INDIVCOMPRICES or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before IndivComPrices_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to IndivComPrices_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help IndivComPrices
% Last Modified by GUIDE v2.5 15-Mar-2015 19:25:19
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @IndivComPrices_OpeningFcn, ...
'gui_OutputFcn', @IndivComPrices_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before IndivComPrices is made visible.
function IndivComPrices_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to IndivComPrices (see VARARGIN)
% Choose default command line output for IndivComPrices
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes IndivComPrices wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = IndivComPrices_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
% --- Executes on button press in Aluminum_PushButton.
function Aluminum_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to Aluminum_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'aluminum')
graphAndPredict;
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Hides_PushButton.
function Hides_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to Hides_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'hides')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in CoffeeArabicas_PushButton.
function CoffeeArabicas_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to CoffeeArabicas_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'coffeearab')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in NaturalGas_pushButton.
function NaturalGas_pushButton_Callback(~, eventdata, handles)
% hObject handle to NaturalGas_pushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'gasrussia')
graphType
fprintf('Data available from 1985 - 2015. \n')
% --- Executes on button press in Bananas_PushButton.
function Bananas_PushButton_Callback(hObject, eventdata, ~)
% hObject handle to Bananas_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'banana')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Barley_PushButton.
function Barley_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to Barley_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'barley')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Beef_PushButton.
function Beef_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to Beef_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'beef')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in coalAustralia_PushButton.
function coalAustralia_PushButton_Callback(~, eventdata, handles)
% hObject handle to coalAustralia_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'coal')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in CocoaBeans_PushButton.
function CocoaBeans_PushButton_Callback(hObject, eventdata, ~)
% hObject handle to CocoaBeans_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'cocoa')
graphAndPredict;
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Rapseed_pushButton.
function Rapseed_pushButton_Callback(~, eventdata, handles)
% hObject handle to Rapseed_pushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'rapeseed')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Copper_PushButton.
function Copper_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to Copper_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'copper')
graphAndPredict;
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Cotton_PushButton.
function Cotton_PushButton_Callback(~, eventdata, handles)
% hObject handle to Cotton_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'cotton')
graphAndPredict;
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Fishmeal_PushButton.
function Fishmeal_PushButton_Callback(~, eventdata, handles)
% hObject handle to Fishmeal_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'fishmeal')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Groundnuts_PushButton.
function Groundnuts_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to Groundnuts_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'nuts')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in CoffeeRobusta_PushButton.
function CoffeeRobusta_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to CoffeeRobusta_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'coffeerob')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Maize_PushButton.
function Maize_PushButton_Callback(~, eventdata, handles)
% hObject handle to Maize_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'maize')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in HardLogos_PushButton.
function HardLogos_PushButton_Callback(~, eventdata, handles)
% hObject handle to HardLogos_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'hardlogs')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in SoftLogos_PushButton.
function SoftLogos_PushButton_Callback(~, eventdata, handles)
% hObject handle to SoftLogos_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'softlogs')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Lead_PushButton.
function Lead_PushButton_Callback(hObject, eventdata, ~)
% hObject handle to Lead_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'lead')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Lamb_PushButton.
function Lamb_PushButton_Callback(~, ~, handles)
% hObject handle to Lamb_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'lamb')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in ChinaImport_PushButton.
function ChinaImport_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to ChinaImport_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'china')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in NatGasIndonesia_PushButton.
function NatGasIndonesia_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to NatGasIndonesia_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'gasindo')
graphType
fprintf('Data available from 1992 - 2015. \n')
% --- Executes on button press in Nickel_PushButton.
function Nickel_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to Nickel_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'nickel')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in CrudeOilAverage_PushButton.
function CrudeOilAverage_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to CrudeOilAverage_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'crudeavg')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in CrudeOilUK_PushButton.
function CrudeOilUK_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to CrudeOilUK_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'crudeuk')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in OilDubai_PushButton.
function OilDubai_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to OilDubai_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'oildubai')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in CrudeOilIntermediate_PushButton.
function CrudeOilIntermediate_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to CrudeOilIntermediate_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'crudeint')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in OliveOil_PushButton.
function OliveOil_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to OliveOil_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'oliveoil')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in OrangesMisc_PushButton.
function OrangesMisc_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to OrangesMisc_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'orange')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in NatGasLouisiana_PushButton.
function NatGasLouisiana_PushButton_Callback(~, eventdata, handles)
% hObject handle to NatGasLouisiana_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'gaslouis')
graphType
fprintf('Data available from 1991 - 2015. \n')
% --- Executes on button press in PalmOil_PushButton.
function PalmOil_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to PalmOil_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'palmoil')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Swine_PushButton.
function Swine_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to Swine_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'pork')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Poultry_PushButton.
function Poultry_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to Poultry_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'chicken')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Rubber_PushButton.
function Rubber_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to Rubber_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'rubber')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Fish_PushButton.
function Fish_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to Fish_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'salmon')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in HardSawnwood_PushButton.
function HardSawnwood_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to HardSawnwood_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'hardwood')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in SoftSawnwood_PushButton.
function SoftSawnwood_PushButton_Callback(~, eventdata, handles)
% hObject handle to SoftSawnwood_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'softwood')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Shrimp_PushButton.
function Shrimp_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to Shrimp_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'shrimp')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in SoybeanMeal_PushButton.
function SoybeanMeal_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to SoybeanMeal_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'soymeal')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in SoybeanOil_PushButton.
function SoybeanOil_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to SoybeanOil_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'soyoil')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in pushbutton4SugarFreeMarket_PushButton.
function pushbutton4SugarFreeMarket_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4SugarFreeMarket_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'sugafree')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in SugarEurope_PushButton.
function SugarEurope_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to SugarEurope_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'sugareuro')
graphType
fprintf('Data available from 1991 - 2015. \n')
% --- Executes on button press in SoybeansUS_PushButton.
function SoybeansUS_PushButton_Callback(~, eventdata, handles)
% hObject handle to SoybeansUS_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'soyus')
graphType
% --- Executes on button press in SugarUSPushButton.
function SugarUSPushButton_Callback(hObject, eventdata, handles)
% hObject handle to SugarUSPushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'sugarus')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in SunflowerOil_PushButton.
function SunflowerOil_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to SunflowerOil_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'sunflower')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Tea_PushButton.
function Tea_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to Tea_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'tea')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Tin_PushButton.
function Tin_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to Tin_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'tin')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Uranium_PushButton.
function Uranium_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to Uranium_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'uranium')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Wheat_PushButton.
function Wheat_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to Wheat_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'wheat')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in WoolCoarse_PushButton.
function WoolCoarse_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to WoolCoarse_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'woolcoarse')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in WoolFine_PushButton.
function WoolFine_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to WoolFine_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'woolfine')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in Zinc_PushButton.
function Zinc_PushButton_Callback(hObject, eventdata, handles)
% hObject handle to Zinc_PushButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'zinc')
graphType
fprintf('Data available from 1980 - 2015. \n')
% --- Executes on button press in pushbutton54.
function pushbutton54_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton54 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in rice.
function rice_Callback(hObject, eventdata, handles)
% hObject handle to rice (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
setappdata(0, 'choice', 'rice')
graphType
fprintf('Data available from 1980 - 2015. \n')