Is it possible to make inactive some of lines?

4 次查看(过去 30 天)
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 个评论
KSSV
KSSV 2021-7-8
In which contest it is? You cannot do that, it will throw an error.
Volkan Yangin
Volkan Yangin 2021-7-8
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.

请先登录,再进行评论。

回答(1 个)

Bruno Luong
Bruno Luong 2021-7-8
Put "..." (without the quotes) in front of the lines you want to hide
  3 个评论
Bruno Luong
Bruno Luong 2021-7-8
Please explain of adding/removing "..." to hide/disable the lines is not suitaable for your need.
Bruno Luong
Bruno Luong 2021-7-8
Just to be sure you understand what I wrote
A = [a*b;... %line 1
... a*b^2; ... %line 2
a*b^3;... %line 3
]

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by