搜索
If you are interested in live script lecture notes in the following areas, take a look at the short course ( Advanced MATLAB for Scientific Computing ) developed at Stanford. You can also download the required data for the examples from the course GitHub page.
- MATLAB Fundamentals
- Graphics and Data Visualization
- Efficient Code Writing
- System and File Manipulation
- Big Data Handling
- Numerical Linear Algebra
- Numerical Optimization
- Symbolic Toolbox, ODE, and PDE
- Statistical and Machine Learning
- Deep Learning
- Object-Oriented Programming
- Using MATLAB with Other Programming Languages
- Image Processing, Computer Vision, and Image Acquisition
- Signal Processing, Audio, and DSP System
In many universities, introductory programming is taught as a foundation course. Students from different departments are usually brought together to learn to program in these foundation courses. Their home departments may have a programming language preference and that preference may change from department to department. Some universities either strictly teach one language in a single course, some of them teach multiple languages in the same course and give students the flexibility to choose their language for the assignments and projects. How can we make students multilingual when it comes to programming? Is there a way to teach multiple languages in a fair light, side by side without creating a new course or sacrificing one language to teach the other one? Dr. Nathan Kutz from the University of Washington found a creative way to teach MATLAB and Python side by side in his AMATH 301 course. This course is an introductory programming course at the University of Washington and almost all engineering students take it. Do you wonder how Dr. Kutz taught this course? Check out these recordings and course resources! They can be utilized in an in-person or a distance learning setting:
Are you looking for ways to keep your students engaged in a virtual setting? Would you like to spice up your courses with hands-on projects? Using Arduino Engineering Kit, you can achieve these. Due to COVID-19, many instructors started to look for creative ways of giving students a lab experience. Some of them chose to create virtual labs, some of them designed hardware projects with low-cost hardware or integrated hardware projects kits to their curriculum. If you are interested in how Dr. Azadi from San Francisco State University used Arduino Engineering Kit during the pandemic to teach his Mechatronics course, check out these articles:
I need to model a brushless motor for which I only have the data of voltage, power, speed, nominal torque, starting torque, max current and total weight, which moves a bicycle. I have studied the Permanent Magnet Synchronous Machine power_pmmotor Simulink example, but I do not have all the required data. My question is whether it is possible to make an approximate model with my few data. I guess some data could be assumed, but I don't know what typical values would be correct. I would greatly appreciate any suggestion. My best regards.
Hi,
I am new to Matlab and looking to model complete EPS system starting with battery modelling. I have seen videos where the modelling is explained but looking for a one which can teach me from the scratch.
Hi, currently I'm studying about DC-DC Boost converter with controller. After I applied the step time, the output voltage supposed to follow the step time, but there is some delay in the simulation results after I applied the "step time" in the step input block. Can someone help, why this delay occur? Please see the attached pictures. Thanks
As per data sheet for VIPER22A, the product is obsolete.
For UC3843A you will have to refer to the data sheet, link given below: https://www.ti.com/lit/ds/symlink/uc3843a.pdf?ts=1637624394197&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FUC3843A
For UC3843A, the reference output voltage is 5 V and the normal output voltage is 13.5 V.
After repairing the power supply of a big water buffalo PC150NCA, now all the parts found to be broken are replaced, but the power-on output 12V is only 4.2V. The original power supply block is UC3843B, which is not sold locally. I can only buy a UC3843A replacement . I don’t know if the low output voltage has anything to do with this (the optocoupler and the 431 voltage regulator block have also been replaced)
Attention all Controls Professors, Teaching Assistants, and Students!
The Virtual Hardware and Labs for Controls by Brian Hong is an absolute must-have from the MATLAB Central File Exchange. With the help of Simscape for physical modelling and simulation of mechatronic systems,
- students can use the interactive experiments to teach themselves some of the concepts of control theory in a learn by doing approach.
- professors and TA’s can use this to replace or augment actual lab work.
With tightening budgets and/or in person class restrictions this can help you transfer these vital skills to the students in a fun manner. Here is an overview of the available modules:
https://www.mathworks.com/matlabcentral/fileexchange/100064-virtual-hardware-and-labs-for-controls
If you have any questions feel free to leave a comment below and I’ll get back to you.
Hi DLC, in case you haven't seen it already, Dr. Dennis Dahlquist and Dr. Zekeriya Aliyazicioglu recently developed a collection of Virtual Labs in Electric Circuits . Please feel free to explore and share your thoughts!
With the switching power supply made by VIPER22A scheme , the 5V output always has noise, and the ripple exceeds 200MV after loading. How to change it? 1. 220VAC input, two outputs, 24V and 5V output are noisy, the ripple after 5V load is more than 200MV, 5V is connected with an LDO to 3.3V, and the measured 3.3V is also noisy, and the LDO heats up seriously. Change The LDO remains unchanged. 2. It is suspected that the load current is large, but I changed a circuit board with the same scheme and found that there is no noise. Although there are ripples, it is not very hot. 3. In addition, directly use a 5V adapter to convert to 3.3V through the same LDO. problem. How to change the device in this figure? 4. For hardware novices, the transformer will not be changed temporarily, and I hope to improve it by adjusting other devices.
Hi Distance Learning Community members, if you are looking for content in Descriptive Statistics and Probability Distributions for teaching in a course or just brushing up on the concepts yourself, check out these Live Scripts developed by Dr. Ward Nickle from Humboldt State University. If you are interested, this material is also available in Japanese . Enjoy and looking forward to hearing your thoughts!!
Several educators worldwide use MATLAB Grader to scale assessments and automatically grade MATLAB coding assignments. MATLAB Grader can be used in any learning environment, for both formative assessments with automated feedback and summative assessments, such as quizzes and exams.
Educators often revise and update their MATLAB Grader problems. They may sometimes want to revisit a past version of a problem, such as to debug an assessment test error. Instructor users can now browse the version history for a specific problem and see draft and final versions.
Note that the versions are read-only and rollback is not supported at this time. However, you can copy code or descriptions and update the problem accordingly.
Get started with MATLAB Grader. If you are new to it, watch the MATLAB Grader Overview video and try the interactive Teaching with MATLAB online course (Section 6 is about MATLAB Grader).
MATLAB Mobile makes it convenient to learn and teach in disciplines requiring computational thinking, such as mathematics, science, and engineering. It can also be used for virtual labs by acquiring smartphone sensor data. As an instructor, you can author examples in MATLAB and demonstrate them on your smartphone or tablet. Students can follow along on their mobile device or tablet to instantly connect results to the concepts they are learning. This is especially relevant for distance learning, where some students may have limited or no access to a full-fledged computer.
Educators make their course material more interactive, promote self-directed learning, and increase student engagement through Live Editor. You can now run and edit live scripts on iOS and Android devices.
Get MATLAB Mobile on the Play Store or App Store, or learn how to teach using Live Scripts.
Hello! I am a 3rd year mechanical engineering student from IIT Ropar. We are participating in EBAJA 2022. I thank Mathworks for providing the customisable vehicle template https://www.mathworks.com/matlabcentral/fileexchange/79484-simscape-vehicle-templates
I have learnt to customise the models parameters of Bus, Sedan, Trucks, etc using the UI provided. However the vehicle models does not include the BAJA ATV in it which we required the most for the animations and simulation results. I needed some assistance for replacing the given vehicle model with a BAJA ATV.
-Tushar Raut LinkedIn: https://www.linkedin.com/in/tushar-raut-73ba75194/
Nowadays, many instructors are integrating AI to their courses. In a distance learning setting, the hardware students use to train their models vary. Training time of the deep learning models can be shortened with a pool of GPUs, CPUs or a pool of CPUs and GPUs locally or in the cloud. Accuracy of the results can depend on the hyperparameters used to train the models.
In MATLAB, Experiment Manager (introduced in R2020a) makes it easy to train networks with various hyperparameters and compare the results. Different models can be run in parallel by clicking on “Use Parallel” button in Experiment Manager App. But what if your computer has multiple CPU cores and a GPU? Would you be able to use Experiment Manager with a pool of CPUs and a GPU? The answer is “yes”. For example, my computer has 1 NVIDIA GPU and an 8 core CPU. To use all these computational resources, I typed these lines in my command window in MATLAB:
parpool(9); spmd if labindex==1 gpuDevice(1); %select GPU on worker 1 else gpuDevice([]); %deselect GPU on remaining workers end
Then, I clicked on “Use Parallel” button in Experiment Manager and used a modified setup function in Experiment Manager to change the execution environment from CPU to GPU:
if isempty(parallel.gpu.GPUDeviceManager.instance.SelectedDevice) options=trainingOptions(~,"ExecutionEnvironment",'cpu'); else options=trainingOptions(~,"ExecutionEnvironment",'gpu'); end
Default training options automatically use an NVIDIA GPU if there is one, and specific hardware can be selected using “ExecutionEnvironment” in the trainingOptions.
If you like to learn more about the fundamentals of parallel computing, check out “Parallel Computing Fundamentals” on our documentation and gain some hands-on experience with Parallel Computing through "Parallel Computing Hands-On Workshop" .
Educators use MATLAB Grader to automatically grade MATLAB code, to provide feedback to their students and to scale assessments for large lectures. If you use MATLAB Grader in our browser-based environment at grader.mathworks.com you can view various individual and aggregate student performance analytics. You can export the MATLAB Grader Assignment Report to analyze your student’s performance in more detail:
To make things easy for you, we provide a utility to create customizable assignment reports from the MATLAB Grader Assignment Report. With this utility you can quickly make lists of students with a metric that defines how well they solved the problems within the assignment. You can explore the number of problems each student solved correctly, calculate the mean percentage score they received for the problems or specify points per problem and calculate the points they scored on the assignment.
Please download the utility Customizable Assignment Report for MATLAB Grader from File Exchange. If you are new to MATLAB Grader, watch the MATLAB Grader Overview video and try the interactive Teaching with MATLAB online course (Section 6 is about MATLAB Grader).
An earlier tip suggested using MATLAB Drive to share and collaborate with others using MATLAB Online or MATLAB on desktop systems. Starting in MATLAB R2021a, there is yet another advantage of using this approach – the 'matlabdrive' function returns the path to the folder that contains the content of your MATLAB Drive.
After sharing their files, instructors sometimes direct students to navigate to a specified folder or add certain folders to the MATLAB search path. This ensures that MATLAB can discover the scripts, functions, and other files contained within. Since the MATLAB Drive folder may be installed in different locations on each users’ computer, this could not be done programmatically. Unfortunately, students may miss these instructions and encounter errors. The same can happen between peers working in groups.
Add the matlabdrive function in your code to obtain the path of the MATLAB Drive folder. You can then use functions cd and fullfile to navigate directly to that location or a subfolder. With addpath, you can also add these to the MATLAB search path. For example,
>> drivePath = matlabdrive drivePath = 'C:\Users\username\MATLAB Drive'
>> folderPath = fullfile(matlabdrive, ‘myfolder’) folderPath = 'C:\Users\username\MATLAB Drive\myfolder’
>> cd(folderPath) % Change current folder to ‘myfolder’ in MATLAB Drive
You can run matlabdrive from your desktop or from other MATLAB environments such as MATLAB Online. On desktop systems, you must have MATLAB Drive Connector installed. If MATLAB is unable to find the MATLAB Drive folder, matlabdrive returns an error.
The Symbolic Math Toolbox includes functions for solving, visualizing, and manipulating symbolic math equations. In combination with MATLAB’s Live Editor, it provides an easy, intuitive, and complete environment to interactively learn and teach algebra, calculus, and ordinary differential equations.
Starting with MATLAB R2021a, you can represent matrices and vectors in compact matrix notation with a new symbolic matrix variable data type. This enables a concise typeset display and show mathematical formulas with more clarity. Using them, you can show matrix- and vector-based expressions the way they are displayed in textbooks.
Contrast the visual difference between matrices of symbolic scalar variables and the new symbolic matrix variables:
The syms and symmatrix functions create symbolic matrix variables. To convert a symbolic matrix variable to an array of symbolic scalar variables, use symmatrix2sym. For an example, see Create Symbolic Matrix Variables.