# Table.Prop​erties.Var​iableNames​" will not allow me to include parentheses () or brackets [ ] in my column heading

10 ビュー (過去 30 日間)
Venkat Ta 2019 年 7 月 8 日
コメント済み: Steven Lord 2019 年 9 月 13 日
Its is not allowing special char
clear all;
close all;
clc;
%Constant Values
A=1; %VOLTS
b0=1; %DIMENSIONLESS
r=0.75; %DIMENSIONLESS
xn=ones(1,41); %Input Sequence as a matrix equal to the Unit-Step Sequence in VOLTS (always 1)
n=[0:1:40]; %Value of "n" ranges from 0 to 40 and are in 1 unit increments
%Impulse response of a 2nd-Order Infinite Impulse Response (IIR) Filter
hn=b0*(-r).^n.*(n+1); %Creates a matrix of values from h[0], h[1], h[2],...,h[n-1],[n]
%Cumulatively sums the values of h[n] which yields the Output Sequence "y[n]"
yn=cumsum(hn);
N=n(:); %Transforms matrix of values of "n" into a single column
XN=xn(:); %Transforms matrix of values of "xn" into a single column
HN=hn(:); %Transforms matrix of values of "h[n]" into a single column
YN=yn(:); %Transforms matrix of values of "y[n]" into a single column
T = table(N, XN, HN, YN) %Outputs a table with the values of "n," the input sequence "x[n],"
%the 2nd-Order (IIR) filter "h[n]," and the output sequence "y[n]."
%T.Properties.VariableNames = {'n' 'x[n] (V)' 'h[n]' 'y[n] (V)'}
T.Properties.VariableNames{1} = 'X_n'
T.Properties.VariableNames {2}='Min%'
T.Properties.VariableNames{3} = '1.96\sigma %'
T.Properties.VariableNames{4} = '1M'
Table.Properties.VariableNames" will not allow me to include parentheses () or brackets [ ] in my column heading
Anybody can help
##### 1 件のコメント-1 件の古いコメントを表示-1 件の古いコメントを非表示
Stephen23 2019 年 7 月 8 日

サインインしてコメントする。

### 採用された回答

Walter Roberson 2019 年 7 月 8 日

VariableNames for tables must be MATLAB variables. This is needed because using TABLENAME.VARIABLE is a fundamental access syntax for tables.
There is a VariableDescription property for tables, but it only shows up when you use summary()
##### 4 件のコメント2 件の古いコメントを表示2 件の古いコメントを非表示
Walter Roberson 2019 年 9 月 13 日
Yup -- I just couldn't say that back then because NDA ;-)
Steven Lord 2019 年 9 月 13 日
Ditto ;)

サインインしてコメントする。

### カテゴリ

Help Center および File ExchangeNumeric Types についてさらに検索

R2018a

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by