Matlab livescript copy and paste

9 ビュー (過去 30 日間)
alpedhuez
alpedhuez 2020 年 8 月 5 日
コメント済み: Adam Danz 2020 年 8 月 5 日
I want to move, let me say, 200 lines of code in Livescript (in one section) to the end of the script (say). Is there any way better than copy and paste? Is it possible to choose a "section" and copy and paste?
  3 件のコメント
alpedhuez
alpedhuez 2020 年 8 月 5 日
Hopefully there is a feature of select a section and copy and paste.
Adam Danz
Adam Danz 2020 年 8 月 5 日
Every once in a while I realize there's a really useful feature of matlab that I didn't know existed. This would be one of those cases. I know of no such feature. Are you imagining a button that, when pressed, copies all of the code within the currently active block within the editor? I can see how that may be useful but most of the time the code in a block is dependent of variables or functions that are within the same file.
If this is something you have to do dozens or hundreds of times, and if there's some way of defining the target block, then you could write a function that reads each file and copies the target block.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeSchedule Model Components についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by