Pasting large code without forced wrapping
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am trying to paste a very large portion of code, which has been via Mathematica. The problem is that MATLAB breaks the code at the vertical line in the editor and adds \ to show where. There are too many of these to make manual removal of these \ feasible.
How can I get MATLAB to let me simply paste-as-is?
2 Kommentare
Rik
am 7 Dez. 2019
Can you confirm this is an issue with Matlab? Can you try to paste it in a text editor as well?
Stephen23
am 20 Apr. 2020
Those backslashes are a feature of Mathematica, they have nothing to do with MATLAB.
"With a single backslash at the end of a line, the Wolfram Language ignores the line break:"
"By default code copied from the FrontEnd is formatted with backslashes added at the ends of lines."
Why would MATLAB would insert a Mathematica syntactical feature that has no meaning in MATLAB?
Antworten (1)
Jared MacDonald
am 20 Apr. 2020
MATLAB does not do this. Presumably Mathematica is putting it onto the clipboard this way. You can confirm this as Rik notes by pasting into another text editor such as Notepad.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!