## Enable Plotting Using the Simulation Data Inspector

You can use the Simulation Data Inspector to inspect and compare floating-point and fixed-point input and output data logged using the `codegen` function. At the MATLAB® command line:

1. Create a fixed-point configuration object and configure the test file name.

```fixptcfg = coder.config('fixpt'); fixptcfg.TestBenchName = 'dti_test'; ```

2. Select to run the test file to verify the generated fixed-point MATLAB code. Log inputs and outputs for comparison plotting and select to use the Simulation Data Inspector to plot the results.

```fixptcfg.TestNumerics = true; fixptcfg.LogIOForComparisonPlotting = true; fixptcfg.PlotWithSimulationDataInspector = true;```
3. Generate fixed-point MATLAB code using `codegen`.

`codegen -float2fixed fixptcfg -config cfg dti`

For an example, see Propose Fixed-Point Data Types Based on Derived Ranges.

##### Support Get trial now
{"ft_lang_label":"__label__en","ft_lang_prob":0.57974017,"math_prob":0.6327369,"size":815,"snap":"2020-24-2020-29","text_gpt3_token_len":185,"char_repetition_ratio":0.14426634,"word_repetition_ratio":0.037383176,"special_character_ratio":0.18404908,"punctuation_ratio":0.13333334,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9634596,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-05-31T11:04:27Z\",\"WARC-Record-ID\":\"<urn:uuid:60ce9be5-2a6f-40ed-8f4a-4108a9adbd5f>\",\"Content-Length\":\"62437\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:daa4c8a3-afeb-45ac-9cc6-af0412a151cf>\",\"WARC-Concurrent-To\":\"<urn:uuid:93d31a92-d778-4130-8448-a41ad8784cfb>\",\"WARC-IP-Address\":\"23.66.56.59\",\"WARC-Target-URI\":\"https://in.mathworks.com/help/coder/ug/enable-plotting-using-the-simulation-data-inspector_bui2dqs.html\",\"WARC-Payload-Digest\":\"sha1:GN7KHERQPLMM64KFRWZYRLX65HOBHPRN\",\"WARC-Block-Digest\":\"sha1:KYEXPAXKBJXMWJGCS6QMHKYIFEPJ3YHT\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-24/CC-MAIN-2020-24_segments_1590347413097.49_warc_CC-MAIN-20200531085047-20200531115047-00109.warc.gz\"}"}