Is it possible to make inactive some of lines?

3 views (last 30 days)
Volkan Yangin
Volkan Yangin on 8 Jul 2021
Commented: Bruno Luong on 8 Jul 2021
Assume that
A = [a*b;... %line 1
a*b^2;... %line 2
a*b^3;... %line 3
]
Is it possible to generate a command to make inactive any line, for ex. line 2 like:
A = [a*b;... %line 1
%a*b^2;... %line 2
a*b^3;... %line 3
]
Thanks,
  2 Comments
Volkan Yangin
Volkan Yangin on 8 Jul 2021
The question is related with my problem given in link:
I have to generate a formula according to any number. It is so easy in MATLAB, but SIMULINK gives me a lot of error when i implement this code.

Sign in to comment.

Answers (1)

Bruno Luong
Bruno Luong on 8 Jul 2021
Put "..." (without the quotes) in front of the lines you want to hide
  3 Comments
Bruno Luong
Bruno Luong on 8 Jul 2021
Just to be sure you understand what I wrote
A = [a*b;... %line 1
... a*b^2; ... %line 2
a*b^3;... %line 3
]

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by