模数2师

时间:2019-01-23 12:58:36

标签: matlab

我正在尝试在MATLAB中实现模2除法,但是每次运行此代码时,都会出现错误。有人可以帮我纠正这个问题吗?我正在尝试将this Python code转换为MATLAB:

<asp:Panel ID="pnlUserFiles" runat="server">
  <asp:GridView ID="gridUserFiles" runat="server" Width="100%" AutoGenerateColumns="False" ShowFooter="true" AllowPaging="True" PageSize="5" OnPageIndexChanging="gridUserFiles_PageIndexChanging" CellPadding="4" ForeColor="#333333" GridLines="None" CssClass="Grid">
    <AlternatingRowStyle Height="90px" BackColor="#EEEEEE" ForeColor="#284775" />
    <Columns>
      <asp:TemplateField ItemStyle-Width="5%">
        <ItemTemplate>
          <asp:HiddenField ID="hdnRealFileName" runat="server" Value='<%# Bind("RealName") %>' />
          <asp:Image ID="imgFileIcon" runat="server" ImageUrl='<%# Bind("FileIcon") %>' />
        </ItemTemplate>
        <ItemStyle Width="5%" />
      </asp:TemplateField>
      <asp:TemplateField HeaderText="NAME" ItemStyle-Width="45%">
        <ItemTemplate>
          <asp:TextBox ID="txtFileName" runat="server" BackColor="Transparent" BorderColor="Black" BorderStyle="None" Enabled="False" Font-Bold="True" ForeColor="RoyalBlue" ReadOnly="True" Style="width: 100%" Text='<%# Bind("FileName") %>' Visible="true" CssClass="form-control-static"></asp:TextBox>
          <asp:Button ID="btnFileRenameOk" runat="server" CssClass="btn btn-success btn-xs" OnClick="btnFileRenameOk_Click" Text="Confirm" Visible="False" />
          <asp:Button ID="btnFileRenameCancel" runat="server" CssClass="btn btn-danger btn-xs" OnClick="btnFileRenameCancel_Click" Text="Canel" Visible="False" />
        </ItemTemplate>
        <ItemStyle Width="45%" />
      </asp:TemplateField>
      <asp:TemplateField HeaderText="SIZE" ItemStyle-Width="7.5%">
        <ItemTemplate>
          <asp:Label ID="lblFileSize" runat="server" Font-Italic="True" Font-Size="Small" Text='<%# Bind("FileSize") %>'></asp:Label>
        </ItemTemplate>
        <ItemStyle Width="7.5%" />
      </asp:TemplateField>
      <asp:TemplateField HeaderText="MODIFIED" ItemStyle-Width="7.5%">
        <ItemTemplate>
          <asp:Label ID="lblFileModified" runat="server" Font-Italic="True" Font-Size="Small" Text='<%# Bind("FileModified") %>'></asp:Label>
        </ItemTemplate>
        <ItemStyle Width="7.5%" />
      </asp:TemplateField>
      <asp:TemplateField HeaderText="ACTION" ItemStyle-Width="20%">
        <ItemTemplate>
          <asp:Button ID="btnFileDownload" runat="server" CssClass="btn btn-success" OnClick="btnFileDownload_Click" Text="Download" />
          <asp:Button ID="btnFileRename" runat="server" CssClass="btn btn-warning" OnClick="btnFileRename_Click" Text="Rename" />
          <asp:Button ID="btnFileDelete" runat="server" CssClass="btn btn-danger" OnClick="btnFileDelete_Click" Text="Delete" />
        </ItemTemplate>
        <ItemStyle Width="20%" />
      </asp:TemplateField>
    </Columns>
    <EditRowStyle BackColor="#999999" />
    <FooterStyle BackColor="Transparent" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
    <HeaderStyle Font-Bold="True" ForeColor="Black" BorderStyle="None" HorizontalAlign="Center" VerticalAlign="Middle" />
    <PagerSettings PageButtonCount="5" FirstPageText="&lt;&lt;" LastPageText="&gt;&gt;" NextPageText="&gt;" PreviousPageText="&lt;" Mode="NumericFirstLast" Visible="True" />
    <PagerStyle BackColor="#EEEEEE" ForeColor="RoyalBlue" HorizontalAlign="Center" CssClass="cssPager pagination-ys" />
    <RowStyle Height="90px" BackColor="White" ForeColor="#333333" />
    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
    <SortedAscendingCellStyle BackColor="#E9E7E2" />
    <SortedAscendingHeaderStyle BackColor="#506C8C" />
    <SortedDescendingCellStyle BackColor="#FFFDF8" />
    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
  </asp:GridView>
</asp:Panel>

0 个答案:

没有答案