<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how we can process this matlab code with labview . in LabVIEW MathScript RT Module</title>
    <link>https://ni.lithium.com/t5/LabVIEW-MathScript-RT-Module/how-we-can-process-this-matlab-code-with-labview/m-p/593985#M331</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;Hello rachana,&lt;BR /&gt;&lt;BR /&gt;The "Signal" variable in your function is a structure array.&amp;nbsp; Unfortunately, LabVIEW MathScript does not have support for structures at this time.&amp;nbsp; One solution to work around this error is to restructure your save file.&amp;nbsp; It looks like you are only using one field in the structure: dayanand00_36_00_39.&amp;nbsp; Instead of saving a structure array, you could save an array of these points.&amp;nbsp; Then you can load this array and work with it in LabVIEW MathScript.&lt;BR /&gt;&lt;BR /&gt;Grant M.&lt;BR /&gt;Staff Software Engineer | LabVIEW Math &amp;amp; Signal Processing | National Instruments&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 11 Oct 2007 14:54:58 GMT</pubDate>
    <dc:creator>GrantM</dc:creator>
    <dc:date>2007-10-11T14:54:58Z</dc:date>
    <item>
      <title>how we can process this matlab code with labview .</title>
      <link>https://ni.lithium.com/t5/LabVIEW-MathScript-RT-Module/how-we-can-process-this-matlab-code-with-labview/m-p/593654#M330</link>
      <description>&lt;DIV&gt;when i have processed this code with math script i found one errror . how we can elliminate this error.&lt;/DIV&gt;
&lt;DIV&gt;only i want to proces this dc shift function by labview.&lt;/DIV&gt;
&lt;DIV&gt;i am forwarding the codes which are &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;function [Sig]= dcshift(Signal)&lt;BR /&gt;Signal=load('C:\MATLAB6p5\work\EEG programs\mat files-good&amp;nbsp; 4 sec epochs\Dayanand_36.mat');&lt;BR /&gt;n=length(Signal);&lt;BR /&gt;avg=0;&lt;BR /&gt;for i=1:n&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; avg=avg+Signal(i).dayanand00_36_00_39;&lt;BR /&gt;end&lt;BR /&gt;avg=avg/n;&lt;BR /&gt;Sig=Signal(i).dayanand00_36_00_39-avg;&lt;BR /&gt;hold on&lt;BR /&gt;plot(Sig-avg)&lt;BR /&gt;plot(Sig)&lt;BR /&gt;%plot(avg)&lt;BR /&gt;hold off&lt;BR /&gt;axis([300 400 -inf inf])&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;thanks &amp;amp; regards&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;rachana&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Oct 2007 05:53:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW-MathScript-RT-Module/how-we-can-process-this-matlab-code-with-labview/m-p/593654#M330</guid>
      <dc:creator>9827530315</dc:creator>
      <dc:date>2007-10-11T05:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: how we can process this matlab code with labview .</title>
      <link>https://ni.lithium.com/t5/LabVIEW-MathScript-RT-Module/how-we-can-process-this-matlab-code-with-labview/m-p/593985#M331</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Hello rachana,&lt;BR /&gt;&lt;BR /&gt;The "Signal" variable in your function is a structure array.&amp;nbsp; Unfortunately, LabVIEW MathScript does not have support for structures at this time.&amp;nbsp; One solution to work around this error is to restructure your save file.&amp;nbsp; It looks like you are only using one field in the structure: dayanand00_36_00_39.&amp;nbsp; Instead of saving a structure array, you could save an array of these points.&amp;nbsp; Then you can load this array and work with it in LabVIEW MathScript.&lt;BR /&gt;&lt;BR /&gt;Grant M.&lt;BR /&gt;Staff Software Engineer | LabVIEW Math &amp;amp; Signal Processing | National Instruments&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Oct 2007 14:54:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW-MathScript-RT-Module/how-we-can-process-this-matlab-code-with-labview/m-p/593985#M331</guid>
      <dc:creator>GrantM</dc:creator>
      <dc:date>2007-10-11T14:54:58Z</dc:date>
    </item>
  </channel>
</rss>

