Home> Common Problem> body text

How to wrap matlab

云罗郡主
Release: 2019-03-18 13:10:19
Original
29676 people have browsed it


#When using this language to write program code, if you encounter a situation where the number of lines is long, if you do not wrap the lines, it will make the code difficult to read. In this case, you can Line break. But line breaking is not simply done with a carriage return. A symbol needs to be added to indicate the connection to the next line. Next, we will introduce how to perform line break representation.

How to wrap matlab

#1. Start this tool first. The engineering software is relatively large. It will take a long time to start for the first time after booting. Wait for a while and you can enter the main program window interface. , here use m file to write the program, click the button pointed by the arrow to create.

How to wrap matlab

#2. After creation, the editor window will open. Here, first use the save button to set its name and location, save it, and then create the program. Put it on the desktop here.

How to wrap matlab

3. Then enter a 1-dimensional array. You can see that it is very long. Then run this single line of code directly. There will be a prompt. You can choose to change or add. The main window The results will be displayed.

How to wrap matlab

#4. Then add three English "..." at the line break, corresponding to the Chinese period ".", only add it at the end of the first line, and the second line No, just use carriage return and line change. However, an error will be reported when running, which is related to the newline position.

How to wrap matlab

5. The reason is related to the position of the three dots. They need to be added after the comma instead of before. After it is added correctly, the font behind it is programmed green, and this part The content can be changed to the next line by pressing Enter.

6. If you perform line breaks in this way, the compiler will not prompt an error, and the green part will turn black. Running this code will get the same result without line breaks. In this way, how to write a program with line breaks is introduced.



The above is the detailed content of How to wrap matlab. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!