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?

 Accepted Answer

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 Comments

I did exactly that and only the first line was commented out. its not a big problem
Check it once.....or attach the file here which didn't work.
my bad, the %{ was not on its own line. simple error
I knew it..so only asked to attach the file....;)

Sign in to comment.

More Answers (0)

Categories

Find more on Language Fundamentals in Help Center and File Exchange

Tags

Asked:

on 18 Oct 2017

Edited:

on 19 Dec 2021

Community Treasure Hunt

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

Start Hunting!