Using MATLAB (779505), страница 16

Файл №779505 Using MATLAB (Using MATLAB) 16 страницаUsing MATLAB (779505) страница 162017-12-27СтудИзба
Просмтор этого файла доступен только зарегистрированным пользователям. Но у нас супер быстрая регистрация: достаточно только электронной почты!

Текст из файла (страница 16)

To see a list of the demos available fora product, use the Launch Pad, and then select a demo to run it. Some productsalso provide access to their demos on the Help menu.4-314Getting HelpContacting Technical SupportIf your computer is connected to the Internet, you can contact MathWorksTechnical Support for help with product problems.• Find specific Technical Support information using the Help browser Searchfeature, with the Search type set to Online Knowledge Base. Theknowledge base provides the most up-to-date solutions for questions userspose.• Select Technical Support Knowledge Base from the Web menu to go theTechnical Support Web page. The page displays in your system’s default Webbrowser. You can find out about other types of information includingthird-party books, ask questions, make suggestions, and report possiblebugs.Providing FeedbackTo report any problems or provide any comments or suggestions to TheMathWorks about the documentation and help features, send e-mail todoc@mathworks.com.Alternatively, you can fill out a form on the Web.

To access the form, go to theContents pane in the Help browser. Open the last entry, Support and WebServices, and select Feedback on Help.To suggest enhancements for or provide feedback about MathWorks products,send e-mail to suggest@mathworks.com. To report problems, send e-mail tobugs@mathworks.com or contact Technical Support.Getting Version and License InformationIf you need the product version or license information, select About from theHelp menu for that product. The version is displayed in an About dialog box.Click Show License in the dialog box to view license information. Note that theinformation displayed does not cover your specific license agreement.

If theproduct does not have a Help menu, use the ver function. To see the licensenumber for MATLAB, type license in the Command Window. See also the verand version functions.4-32Other Methods for Getting HelpAccessing Documentation for Other ProductsThe Help browser provides access to documentation for all products installedon your system. If you want to look through documentation for MathWorksproducts you don’t have, you can:• View any product’s online documentation at the MathWorks Web site,http://www.mathworks.com.

Use Access login. If you are not an Accessmember, select Membership from the Web menu and follow the instructionsto join.• You can access documentation for all products from the documentation CDprovided with MATLAB. It contains PDF files for all products. Usepreferences for the Help browser to set the documentation location to theCD-ROM drive and use the product filter to specify those products whosedocumentation you want to see.

For instructions, see “Preferences for theHelp Browser” on page 4-21.Participating in the Newsgroup for MathWorksProductsThe USENET newsgroup for MATLAB and related products,comp.soft-sys.matlab, is read by thousands of users worldwide. Access thenewsgroup to ask or provide help or advice, and to share code or examples. Youcan view and search through a sizable archive of postings from thecomp.soft-sys.matlab link on the Technical Support Web page.

SelectTechnical Support Knowledge Base from the Web menu.4-334Getting Help4-345Workspace, Search Path,and File OperationsMATLAB Workspace . . . . . . . . . . . . . . . . 5-3Workspace Browser . . . . . . . . . . . . . . . . . . 5-3Viewing and Editing Workspace Variables Using theArray Editor . . . . . . .

. . . . . . . . . . . 5-10Search Path . . . . . . . . . . . . . . . . . . . . 5-14How the Search Path Works . . . . . . . . . . . . . . 5-14Viewing and Setting the Search Path . . . . . . . . . . 5-15File Operations . . . . . . . . . . . . . .Current Directory Field . . . .

. . . . . . . .Current Directory Browser . . . . . . . . . . .Viewing and Making Changes to Directories . . .Creating, Renaming, Copying, and RemovingDirectories and Files . . . . . . . . . . .Opening, Running, and Viewing the Content of FilesFinding and Replacing Content Within Files . . .Preferences for the Current Directory Browser . .............. 5-20. 5-20.

5-20. 5-22............. 5-23. 5-26. 5-28. 5-305Workspace, Search Path, and File OperationsWhen you work with MATLAB, you’ll need to understand these importantaspects:• Workspace – The workspace is the set of variables maintained in memoryduring a MATLAB session. Use the Workspace browser or equivalentfunctions to view the workspace.• Search path – MATLAB uses a search path to find M-files and otherMATLAB related files. Use the Set Path dialog box or equivalent functionsto view and change the path.• File operations – To search for, view, open, and make changes to MATLABrelated directories and files, use the MATLAB Current Directory browser orequivalent functions.5-2MATLAB WorkspaceMATLAB WorkspaceThe MATLAB workspace consists of the set of variables (named arrays) builtup during a MATLAB session and stored in memory.

You add variables to theworkspace by using functions, running M-files, and loading saved workspaces.For example, if you typet = 0:pi/4:2*pi;y = sin(t);the workspace includes two variables, y and t, each having nine values.Workspace BrowserUse the Workspace browser to perform operations on the MATLAB workspace.Equivalent functions are available and are documented for each feature of theWorkspace browser.To open the Workspace browser, do one of the following:• From the View menu in the MATLAB desktop, select Workspace.• In the Launch Pad, under MATLAB, double-click Workspace.• Type workspace at the Command Window prompt.5-35Workspace, Search Path, and File OperationsThe Workspace browser opens.Workspace operations you can perform from the Workspace browser or withfunctions are:• “Viewing the Current Workspace” on page 5-4• “Saving the Current Workspace” on page 5-5• “Loading a Saved Workspace” on page 5-7• “Clearing Workspace Variables” on page 5-8• “Viewing Base and Function Workspaces Using the Stack” on page 5-8• “Creating Graphics from the Workspace Browser” on page 5-9• “Viewing and Editing Workspace Variables Using the Array Editor” onpage 5-10You can also set preferences – see “Preferences for the Workspace Browser” onpage 5-9.Viewing the Current WorkspaceThe Workspace browser shows the name of each variable, its array size, its sizein bytes, and the class.

The icon for each variable denotes its class.5-4MATLAB WorkspaceTo resize the columns of information, drag the column header borders. To showor hide any of the columns, or to specify the sort order, select Workspace ViewOptions from the View menu.You can select the column on which to sort in the Workspace browser as wellas reverse the sort order of any column. Click on a column heading to sort onthat column. Click on the column heading again to reverse the sort order inthat column.

For example, to sort on Size, click the column heading once. Tochange from ascending to descending, click on the heading again.Function Alternative. Use who to list the current workspace variables. Use whos tolist the variables and information about their size and class. For example:whoYour variables are:AMSvwhosNameSizeBytes ClassA4x4128 double arrayM8x12368 cell arrayS1x1398 struct arrayv5x990 char arrayGrand total is 286 elements using 2984 bytesUse the exist function to see if the specified variable is in the workspace.Saving the Current WorkspaceThe workspace is not maintained across MATLAB sessions. When you quitMATLAB, the workspace is cleared.

You can save any or all of the variables inthe current workspace to a MAT-file, which is a MATLAB specific binary file.You can then load the MAT-file at a later time during the current or anothersession to reuse the workspace variables. MAT-files use a .mat extension.

Notethat the .mat extension is also used by Microsoft Access.Saving All Variables. To save all of the workspace variables using the Workspacebrowser:5-55Workspace, Search Path, and File Operations1 From the File or context menu, select Save Workspace As, or click the savebuttonin the Workspace browser toolbar.The Save dialog box opens.2 Specify the location and File name. MATLAB automatically supplies the.mat extension.3 Click Save.The workspace variables are saved under the MAT-file name you specified.You can also save the workspace variables from the Command Window byselecting Save Workspace As from the File menu.Saving Selected Variables.

To save some but not all of the current workspacevariables:1 Select the variable in the Workspace browser. To select multiple variables,Shift+click or Ctrl+click.2 Right-click and from the context menu, select Save Selection As.The Save to MAT-File dialog box opens.3 Specify the location and File name. MATLAB automatically supplies the.mat extension.4 Click Save.The workspace variables are saved under the MAT-file name you specified.Function Alternative. To save workspace variables, use the save function followedby the filename you want to save to.

For example,save('june10')saves all current workspace variables to the file june10.mat.If you don’t specify a filename, the workspace is saved to matlab.mat in thecurrent working directory. You can specify which variables to save, as well ascontrol the format in which the data is stored, such as ascii.

Характеристики

Тип файла
PDF-файл
Размер
6,57 Mb
Материал
Тип материала
Высшее учебное заведение

Список файлов книги

Свежие статьи
Популярно сейчас
Как Вы думаете, сколько людей до Вас делали точно такое же задание? 99% студентов выполняют точно такие же задания, как и их предшественники год назад. Найдите нужный учебный материал на СтудИзбе!
Ответы на популярные вопросы
Да! Наши авторы собирают и выкладывают те работы, которые сдаются в Вашем учебном заведении ежегодно и уже проверены преподавателями.
Да! У нас любой человек может выложить любую учебную работу и зарабатывать на её продажах! Но каждый учебный материал публикуется только после тщательной проверки администрацией.
Вернём деньги! А если быть более точными, то автору даётся немного времени на исправление, а если не исправит или выйдет время, то вернём деньги в полном объёме!
Да! На равне с готовыми студенческими работами у нас продаются услуги. Цены на услуги видны сразу, то есть Вам нужно только указать параметры и сразу можно оплачивать.
Отзывы студентов
Ставлю 10/10
Все нравится, очень удобный сайт, помогает в учебе. Кроме этого, можно заработать самому, выставляя готовые учебные материалы на продажу здесь. Рейтинги и отзывы на преподавателей очень помогают сориентироваться в начале нового семестра. Спасибо за такую функцию. Ставлю максимальную оценку.
Лучшая платформа для успешной сдачи сессии
Познакомился со СтудИзбой благодаря своему другу, очень нравится интерфейс, количество доступных файлов, цена, в общем, все прекрасно. Даже сам продаю какие-то свои работы.
Студизба ван лав ❤
Очень офигенный сайт для студентов. Много полезных учебных материалов. Пользуюсь студизбой с октября 2021 года. Серьёзных нареканий нет. Хотелось бы, что бы ввели подписочную модель и сделали материалы дешевле 300 рублей в рамках подписки бесплатными.
Отличный сайт
Лично меня всё устраивает - и покупка, и продажа; и цены, и возможность предпросмотра куска файла, и обилие бесплатных файлов (в подборках по авторам, читай, ВУЗам и факультетам). Есть определённые баги, но всё решаемо, да и администраторы реагируют в течение суток.
Маленький отзыв о большом помощнике!
Студизба спасает в те моменты, когда сроки горят, а работ накопилось достаточно. Довольно удобный сайт с простой навигацией и огромным количеством материалов.
Студ. Изба как крупнейший сборник работ для студентов
Тут дофига бывает всего полезного. Печально, что бывают предметы по которым даже одного бесплатного решения нет, но это скорее вопрос к студентам. В остальном всё здорово.
Спасательный островок
Если уже не успеваешь разобраться или застрял на каком-то задание поможет тебе быстро и недорого решить твою проблему.
Всё и так отлично
Всё очень удобно. Особенно круто, что есть система бонусов и можно выводить остатки денег. Очень много качественных бесплатных файлов.
Отзыв о системе "Студизба"
Отличная платформа для распространения работ, востребованных студентами. Хорошо налаженная и качественная работа сайта, огромная база заданий и аудитория.
Отличный помощник
Отличный сайт с кучей полезных файлов, позволяющий найти много методичек / учебников / отзывов о вузах и преподователях.
Отлично помогает студентам в любой момент для решения трудных и незамедлительных задач
Хотелось бы больше конкретной информации о преподавателях. А так в принципе хороший сайт, всегда им пользуюсь и ни разу не было желания прекратить. Хороший сайт для помощи студентам, удобный и приятный интерфейс. Из недостатков можно выделить только отсутствия небольшого количества файлов.
Спасибо за шикарный сайт
Великолепный сайт на котором студент за не большие деньги может найти помощь с дз, проектами курсовыми, лабораторными, а также узнать отзывы на преподавателей и бесплатно скачать пособия.
Популярные преподаватели
Добавляйте материалы
и зарабатывайте!
Продажи идут автоматически
6989
Авторов
на СтудИзбе
262
Средний доход
с одного платного файла
Обучение Подробнее
{user_main_secret_data}