matlab primer 7th edition phần 2

Các câu lệnh switch chỉ là giống như báo cáo nếu. Nếu bạn có một biểu thức mà bạn muốn so sánh với một số người khác, sau đó, một tuyên bố chuyển đổi có thể được ngắn gọn hơn hơn tương ứng nếu tuyên bố. Xem giúp chuyển đổi để biết thêm thông tin. | shown in your Command History window. For more options select and right-click on a line of the Command window. Array Editor window Once an array exists it can be modified with the Array Editor which acts like a spreadsheet for matrices. Go to the Workspace window and double-click on the matrix C. Click on an entry in C and change it and try changing the size of C. Go back to the Command window and type C and you will see your new array C. You can also edit the matrix C by typing the command openva r C . Current Directory window Your current directory is where MATLAB looks for your M-files and for workspace .mat files that you l oad and save. You can also load and save matrices as ASCII files and edit them with your favorite text editor. The file should consist of a rectangular array of just the numeric matrix entries. Use a text editor to create a file in your current directory called or type edit that contains these 2 lines 22 67 12 33 Type the command load and the file will be loaded from the current directory to the variable mymatri x. The file extension .txt in this example can be anything except .mat. 9 You can use the menus and buttons in the Current Directory window to peruse your files or you can use commands typed in the Command window. The command pwd returns the name of the current directory and cd will change the current directory. The command dir lists the contents of the working directory whereas the command what lists only the MATLAB-specific files in the directory grouped by file type. The MATLAB commands del ete and type can be used to delete a file and display a file in the Command window respectively. The Current Directory window includes a suite of useful code development tools described in Chapter 21. 3. Matrices and Matrix Operations You have now seen most of MATLAB s windows and what they can do. Now take a look at how you can use MATLAB to work on matrices and other data types. Referencing .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
30    91    1    30-06-2024
5    91    2    30-06-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.