Commenting out large sections does not work sometimes

hi, im trying to comment out this text:
Write a MATLAB script that will load a *.csv (comma separated value) file containing
two column vectors; the first vector containing time values, the second amplitude
values. The script should compute the discrete fast Fourier transform of the amplitude
values and plot the Single-Sided Power Spectrum. MATLAB help can be found
at:
but %{
%} does not work. this happens sometimes. would you know why?
Are there special rules for block commenting?

 採用された回答

KSSV
KSSV 2017 年 10 月 18 日

2 投票

This works when nothing is written next to them....you must write the comment after and before these lines:
The below works:
%{
Write a MATLAB script that will load a *.csv (comma separated value) file containing two column vectors; the first vector containing time values, the second amplitude values. The script should compute the discrete fast Fourier transform of the amplitude values and plot the Single-Sided Power Spectrum. MATLAB help can be found at:
%}

5 件のコメント

ddd ppp
ddd ppp 2017 年 10 月 18 日
I did exactly that and only the first line was commented out. its not a big problem
KSSV
KSSV 2017 年 10 月 18 日
Check it once.....or attach the file here which didn't work.
ddd ppp
ddd ppp 2017 年 10 月 18 日
my bad, the %{ was not on its own line. simple error
KSSV
KSSV 2017 年 10 月 18 日
I knew it..so only asked to attach the file....;)
Vladimir Cordeiro
Vladimir Cordeiro 2021 年 12 月 19 日
編集済み: Vladimir Cordeiro 2021 年 12 月 19 日
Thanks, bro!

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLanguage Fundamentals についてさらに検索

タグ

質問済み:

2017 年 10 月 18 日

編集済み:

2021 年 12 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by