


{"id":358554,"date":"2024-03-22T18:06:16","date_gmt":"2024-03-22T18:06:16","guid":{"rendered":"\/forum\/forums\/reply\/358554\/"},"modified":"2024-03-22T18:07:39","modified_gmt":"2024-03-22T18:07:39","slug":"358554","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/358554\/","title":{"rendered":"Reply To: How to output TimeMonitor result by using script"},"content":{"rendered":"<p>&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;You have already got E2 the intensity, which is a 4D matrix: xyz and time.&lt;\/p&gt;&lt;p&gt;You can use &ldquo;pinch&rdquo; to remove the singleton dimension. &nbsp;<a href=\"https:\/\/optics.ansys.com\/hc\/en-us\/search\/click?data=BAh7DjoHaWRsKwgqDbnTUwA6D2FjY291bnRfaWRpA02AjDoJdHlwZUkiDGFydGljbGUGOgZFVDoIdXJsSSJRaHR0cHM6Ly9vcHRpY3MuYW5zeXMuY29tL2hjL2VuLXVzL2FydGljbGVzLzM2MDAzNDQwNTY3NC1waW5jaC1TY3JpcHQtY29tbWFuZAY7CFQ6DnNlYXJjaF9pZEkiKTU4ZjYyOTVhLTA4NzEtNDg0NC1hNzg2LTYyOWE5MWM0MjEzOQY7CEY6CXJhbmtpBjoLbG9jYWxlSSIKZW4tdXMGOwhUOgpxdWVyeUkiGHNpbmdsZXRvbiBkaW1lbnNpb24GOwhUOhJyZXN1bHRzX2NvdW50aQIkAQ%3D%3D--a77b3772f990d631ced3ba165e5c871d5272529c\">pinch &ndash; Script command<\/a>&lt;\/p&gt;&lt;p&gt;if you are using a point time monitor, after &ldquo;pinch&rdquo;, it will be a 1D matrix, which is the time.&lt;\/p&gt;&lt;p&gt;If you use a line time monitor, the result will be 2D.&lt;\/p&gt;&lt;p&gt;E = getresult(&ldquo;monitor_1&Prime;,&rdquo;E&rdquo;);&lt;\/p&gt;&lt;p&gt;E_2=E.E2;&lt;\/p&gt;&lt;p&gt;E2=pinch(E_2);&lt;\/p&gt;&lt;p&gt;time=E.t;&lt;\/p&gt;&lt;p&gt;plot(time, E2,&rdquo;time (s)&rdquo;,&rdquo;Intensity&rdquo;);&lt;\/p&gt;&lt;p&gt;<img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/22-03-2024-1711130517-mceclip0.png\" \/>&lt;\/p&gt;&lt;p&gt;E1 = getresult(&ldquo;monitor_3&Prime;,&rdquo;E&rdquo;);&lt;\/p&gt;&lt;p&gt;E2_3=pinch(E1.E2);&lt;\/p&gt;&lt;p&gt;x=E1.x;&lt;\/p&gt;&lt;p&gt;t=E1.t;&lt;\/p&gt;&lt;p&gt;image(x*1e6,t*1e15,E2_3,&rdquo;x um&rdquo;,&rdquo;time fs&rdquo;);&lt;\/p&gt;&lt;p&gt;<img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/22-03-2024-1711130540-mceclip1.png\" \/>&lt;\/p&gt;&lt;p&gt;you can save the result in ldf format: <a href=\"https:\/\/optics.ansys.com\/hc\/en-us\/search\/click?data=BAh7DjoHaWRsKwimIrnTUwA6D2FjY291bnRfaWRpA02AjDoJdHlwZUkiDGFydGljbGUGOgZFVDoIdXJsSSJUaHR0cHM6Ly9vcHRpY3MuYW5zeXMuY29tL2hjL2VuLXVzL2FydGljbGVzLzM2MDAzNDQxMTE3NC1zYXZlZGF0YS1TY3JpcHQtY29tbWFuZAY7CFQ6DnNlYXJjaF9pZEkiKTk4MzIzODAwLTgzMmQtNDhiNi1hMjg4LWQxMWViYTA4ZmUyNAY7CEY6CXJhbmtpBjoLbG9jYWxlSSIKZW4tdXMGOwhUOgpxdWVyeUkiDXNhdmVkYXRhBjsIVDoScmVzdWx0c19jb3VudGkV--138832f5d1a63e9b0b27be5579d7891764d7d13a\">savedata &ndash; Script command<\/a>&lt;\/p&gt;&lt;p&gt;or matlab format: <a href=\"https:\/\/optics.ansys.com\/hc\/en-us\/search\/click?data=BAh7DjoHaWRsKwjxBcHTUwA6D2FjY291bnRfaWRpA02AjDoJdHlwZUkiDGFydGljbGUGOgZFVDoIdXJsSSJWaHR0cHM6Ly9vcHRpY3MuYW5zeXMuY29tL2hjL2VuLXVzL2FydGljbGVzLzM2MDAzNDkyODExMy1tYXRsYWJzYXZlLVNjcmlwdC1jb21tYW5kBjsIVDoOc2VhcmNoX2lkSSIpOWViMDRlN2EtYWE0YS00Y2NmLThjNzctOGU0ZGI3MmZiNjNiBjsIRjoJcmFua2kGOgtsb2NhbGVJIgplbi11cwY7CFQ6CnF1ZXJ5SSIPbWF0bGFic2F2ZQY7CFQ6EnJlc3VsdHNfY291bnRpGw%3D%3D--927114ac34bd3582824b709e3a28a152605df256\">matlabsave &ndash; Script command<\/a>&lt;\/p&gt;&lt;p&gt;txt format: <a href=\"https:\/\/optics.ansys.com\/hc\/en-us\/search\/click?data=BAh7DjoHaWRsKwh%2BIrnTUwA6D2FjY291bnRfaWRpA02AjDoJdHlwZUkiDGFydGljbGUGOgZFVDoIdXJsSSJRaHR0cHM6Ly9vcHRpY3MuYW5zeXMuY29tL2hjL2VuLXVzL2FydGljbGVzLzM2MDAzNDQxMTEzNC13cml0ZS1TY3JpcHQtY29tbWFuZAY7CFQ6DnNlYXJjaF9pZEkiKWQyYTgwMzY2LWIzNWItNDU4MS05YmY0LTljODJlNDIzMzJjYQY7CEY6CXJhbmtpBjoLbG9jYWxlSSIKZW4tdXMGOwhUOgpxdWVyeUkiCndyaXRlBjsIVDoScmVzdWx0c19jb3VudGln--c1829d1575d5fabd88f604a952a49574102bd5ca\">write &ndash; Script command<\/a>&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;As for the data, you can simply save the dataset, which will be easy for you later, or each of the data matrix, eg, E2,x,t etc.&lt;\/p&gt;&lt;p&gt;<img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/22-03-2024-1711130855-mceclip0.png\" \/>&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-358554","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"You have already got E2 the intensity, which is a 4D matrix: xyz and time.You can use \u201cpinch\u201d to remove the singleton dimension. pinch \u2013 Script commandif you are using a point time monitor, after \u201cpinch\u201d, it will be a 1D matrix, which is the time.If you use a line time monitor, the result will\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/358554\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Ansys Learning Forum | Ansys Innovation Space\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Reply To: How to output TimeMonitor result by using script | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"You have already got E2 the intensity, which is a 4D matrix: xyz and time.You can use \u201cpinch\u201d to remove the singleton dimension. pinch \u2013 Script commandif you are using a point time monitor, after \u201cpinch\u201d, it will be a 1D matrix, which is the time.If you use a line time monitor, the result will\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/358554\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/22-03-2024-1711130517-mceclip0.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/22-03-2024-1711130517-mceclip0.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-03-22T18:06:16+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-03-22T18:07:39+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Reply To: How to output TimeMonitor result by using script | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"You have already got E2 the intensity, which is a 4D matrix: xyz and time.You can use \u201cpinch\u201d to remove the singleton dimension. pinch \u2013 Script commandif you are using a point time monitor, after \u201cpinch\u201d, it will be a 1D matrix, which is the time.If you use a line time monitor, the result will\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/22-03-2024-1711130517-mceclip0.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/reply\\\/358554\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/reply\\\/358554\\\/#listItem\",\"name\":\"Reply To: How to output TimeMonitor result by using script\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/reply\\\/358554\\\/#listItem\",\"position\":2,\"name\":\"Reply To: How to output TimeMonitor result by using script\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/reply\\\/358554\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/reply\\\/358554\\\/\",\"name\":\"Reply To: How to output TimeMonitor result by using script | Ansys Learning Forum\",\"description\":\"You have already got E2 the intensity, which is a 4D matrix: xyz and time.You can use \\u201cpinch\\u201d to remove the singleton dimension. pinch \\u2013 Script commandif you are using a point time monitor, after \\u201cpinch\\u201d, it will be a 1D matrix, which is the time.If you use a line time monitor, the result will\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/reply\\\/358554\\\/#breadcrumblist\"},\"datePublished\":\"2024-03-22T18:06:16+00:00\",\"dateModified\":\"2024-03-22T18:07:39+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Reply To: How to output TimeMonitor result by using script | Ansys Learning Forum","description":"You have already got E2 the intensity, which is a 4D matrix: xyz and time.You can use \u201cpinch\u201d to remove the singleton dimension. pinch \u2013 Script commandif you are using a point time monitor, after \u201cpinch\u201d, it will be a 1D matrix, which is the time.If you use a line time monitor, the result will","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/358554\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/358554\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","position":1,"name":"Home","item":"https:\/\/innovationspace.ansys.com\/forum","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/358554\/#listItem","name":"Reply To: How to output TimeMonitor result by using script"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/358554\/#listItem","position":2,"name":"Reply To: How to output TimeMonitor result by using script","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}}]},{"@type":"Organization","@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization","name":"Ansys Learning Forum","description":"Ansys Innovation Space","url":"https:\/\/innovationspace.ansys.com\/forum\/"},{"@type":"WebPage","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/358554\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/358554\/","name":"Reply To: How to output TimeMonitor result by using script | Ansys Learning Forum","description":"You have already got E2 the intensity, which is a 4D matrix: xyz and time.You can use \u201cpinch\u201d to remove the singleton dimension. pinch \u2013 Script commandif you are using a point time monitor, after \u201cpinch\u201d, it will be a 1D matrix, which is the time.If you use a line time monitor, the result will","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/358554\/#breadcrumblist"},"datePublished":"2024-03-22T18:06:16+00:00","dateModified":"2024-03-22T18:07:39+00:00"},{"@type":"WebSite","@id":"https:\/\/innovationspace.ansys.com\/forum\/#website","url":"https:\/\/innovationspace.ansys.com\/forum\/","name":"Ansys Learning Forum","description":"Ansys Innovation Space","inLanguage":"en-US","publisher":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization"}}]},"og:locale":"en_US","og:site_name":"Ansys Learning Forum | Ansys Innovation Space","og:type":"article","og:title":"Reply To: How to output TimeMonitor result by using script | Ansys Learning Forum","og:description":"You have already got E2 the intensity, which is a 4D matrix: xyz and time.You can use \u201cpinch\u201d to remove the singleton dimension. pinch \u2013 Script commandif you are using a point time monitor, after \u201cpinch\u201d, it will be a 1D matrix, which is the time.If you use a line time monitor, the result will","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/358554\/","og:image":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/22-03-2024-1711130517-mceclip0.png","og:image:secure_url":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/22-03-2024-1711130517-mceclip0.png","article:published_time":"2024-03-22T18:06:16+00:00","article:modified_time":"2024-03-22T18:07:39+00:00","twitter:card":"summary_large_image","twitter:title":"Reply To: How to output TimeMonitor result by using script | Ansys Learning Forum","twitter:description":"You have already got E2 the intensity, which is a 4D matrix: xyz and time.You can use \u201cpinch\u201d to remove the singleton dimension. pinch \u2013 Script commandif you are using a point time monitor, after \u201cpinch\u201d, it will be a 1D matrix, which is the time.If you use a line time monitor, the result will","twitter:image":"https:\/\/innovationspace.ansys.com\/forum\/forum\/wp-content\/uploads\/sites\/2\/2024\/03\/22-03-2024-1711130517-mceclip0.png"},"aioseo_meta_data":{"post_id":"358554","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"content","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":true,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2024-10-28 16:52:37","updated":"2026-08-12 06:44:48","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tReply To: How to output TimeMonitor result by using script\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/forum"},{"label":"Reply To: How to output TimeMonitor result by using script","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/358554\/"}],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/358554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/reply"}],"version-history":[{"count":1,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/358554\/revisions"}],"predecessor-version":[{"id":358555,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/358554\/revisions\/358555"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=358554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}