主要内容

搜索


I need to put a number of problems on MATLAB cody under same Problem group, as many other people have done.
Can anyone please help me on this.

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).

Join our celebration of the 20th anniversary of MATLAB Central community! You are invited to enter 2 contests - A Treasure Hunt and a MATLAB Mini Hack - to have fun and win prizes.

How to Play

  • In the Treasure Hunt, complete 10 fun tasks to explore the ‘treasures’ in the community.
  • In the MATLAB Mini Hack, use up to 280 characters of MATLAB code to generate an interesting image. Simply vote for the entries that you like or share your own entries to gain votes.

Prizes

You will have opportunities to win compelling prizes, including special edition T-shirts, customized T-shirts, Amazon gift cards, and virtual badges. Your participation will also bump up our charity donations.

Ready to participate?

Visit the community contests space and choose the contest you’d like to enter. Note that:

  • You need a MathWorks account to participate. If you don’t have a MathWorks account, you can create one at MathWorks sign in .
  • Make sure you follow the contests (click the ‘follow the contests’ button on the top) to get notified for prize information and important announcements.

For the full contest rules, prizes, and terms, see details here .

We hope you enjoy the contests and win big prizes. NOW, LET THE CELEBRATION BEGIN!

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.

My simulink program require a feedback loop from an AC signal. How does one create a mean/ median value from a sinusoidal signal. Specifically, I want to average a power signal for last 0.1 sec and then adjust PWM signal.

If your university is among the thousands worldwide with a Campus-Wide License, you have unlimited access to all MathWorks products. Therefore, when sharing your MATLAB code online or with collaborators and students, you may want to verify which add-ons or toolboxes it requires. You may also have received files and want to determine missing add-ons or toolboxes you need to install in order to run it.

Starting in R2021a, MATLAB’s Dependency Analyzer detects and lists required add-ons, including apps and toolboxes, for a whole MATLAB Project or for selected files. It can also identify which file is introducing a product dependency. For more details, see Find Required Products and Add-Ons.

Improving accessibility in higher education – whether on-campus or virtual – is important to ensure the learning experience accommodates all. MathWorks is committed to improving the accessibility of its software products for users with disabilities.

In MATLAB Online, you can use a screen reader to interact with the Command Window, create and edit scripts and functions in the Editor, and navigate through the MATLAB desktop tools. For more information, refer to the documentation page Use a Screen Reader in MATLAB Online .

You can learn more and sign up for usability research to improve the accessibility of MATLAB Online in the Accessibility Statement for MATLAB page.

Let me share with you how at TH Rosenheim we continued to conduct project-based engineering education with our students that could be conducted at home and outside.

How can students study and learn the development process on a real example? Three Master students from TH Rosenheim elaborated those steps on the design, simulation, manufacturing and the launch of a water rocket. The propulsion force comes from air, that is pumped into cola bottle with water inside. The bottle serves as pressure chamber; a fast opening of the bottle expels the water and pushes the rocket up. The right mixture of air and water has an influence on the reachable height. This was analysed and optimized. The pressure chamber has been with modern CAD tools and modelled by Finite-Element Methods and designed to sustain a pressure of up to 20 bar.

Attached to the rocket are the fins for aerodynamic stabilisation. A service module was set on top. It contains the survival mechanism of the rocket – a parachute, which needs to be expelled at the right moment in time. The proper command comes from the Raspberry Pi inside the module, the brain of the rocket. It collects and stores the sensor data and commands timer controlled the cap of the rocket to be opened to start a safe landing. The flight of the rocket has been simulated with the original CAD designed parts including launch site and animated using the Virtual Reality Toolbox. You find the 5-minutes-movie of the project here.

Do you have tips or questions? Do you know of similar projects? Then contact me!

Best regards,

Peter Zentgraf

MATLAB Drive provides a common cloud-based storage location for your scripts, live scripts, and other MATLAB files. All files you place in your MATLAB Drive get backed up in the cloud. You can use it to send either a personal invitation or a view-only link to a shared folder. Its close integration with MATLAB and MATLAB Online make it the easiest way to share and collaborate with other MATLAB users.

For example, instructors can share a read-only folder of class material with their students. Students can collaborate with peers on a common shared folder for group projects, and subsequently share it with their instructor for assessment. Thanks to full integration with MATLAB Online, you can view, modify, and run such shared files from within a web browser with just a few clicks.

Use MATLAB Drive Connector to sync your files between your computers and MATLAB Online, eliminating the need for manual upload or download.

With MATLAB Online, your students do not need a high-end computer to install and use MATLAB. Instead, they just need a web-connected computer. MATLAB Online lets students connect their webcam to capture live videos and images. Here’s an example of performing a simple object detection using a pretrained neural network called AlexNet and a live feed from a webcam. Google Chrome™ is required for webcam support.

Read more about it in the documentation, or take a look at this video for additional examples.

Are you looking for ideas to provide students a more effective learning experience in an online or hybrid environment? A collection of videos on Online Teaching with MATLAB and Simulink demonstrates resources for providing hands-on experience with MATLAB and Simulink, plus examples of delivering instruction, engaging students using virtual labs and projects, and assessing outcomes in your preferred learning platform.

View ‘Online Teaching with MATLAB and Simulink’ video series

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.

To get you started easily, you can access MATLAB Grader problem collections that include domains like Calculus, Programming, Dynamics, and more. Adapt these examples to your curriculum or use them as is to generate quick exercises for your students and reinforce MATLAB skills. The examples illustrate some best practices for how to design assessments, test for common errors, and write rich feedback for students to help them iterate and improve on their solutions.

Request access to the problem collections through Customer Support or your assigned Customer Success Engineer or Account Representative. They ensure that only authorized instructors gain access to the problem collections.

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).

I created a problem in Cody that approximates e. To test the user's solution, I compare their solution to e. What I want to do instead is compare the user's solution to my reference solution. The question is how do I call the reference solution in the test suite?
This is currently my test suite.
sol=exp(1);
y_correct = playgame();
assessVariableEqual('y_correct',sol);
I created several problems recently in CODY. Some of them got removed automatically. I was curious as to why.
It is possible that the problems used latex in their description, so I am not sure if that was the reason they got rejected by the cody server.