Home - MATLAB Central

An open exchange for the MATLAB and Simulink user community


Boa noite. Comprei recentemente um novo pc e gostaria de instalar o matlab nele. O problema que venho enfrentando é que tenho a versão de estudante e uso o matlab em dois pcs diferentes mas nunca...

1

answer

When will the Mathlab issue about licence be resolved MATHLAB ISSUE Because I tried logging in and it's not working What "issue about licence[sic]" are you experiencing? I would recommend you contact your license administrator (if you are using your company's or educational inst...

2

replies

I work for the Army Global Cyber Center and have been tasked with making MATLAB installable for users moving to a new Army forest. The customer can supply the installer they have, but I need to...

1

answer

For the given set of numbers, find all the factors of each number and tabulate. • Step 1. Declare the number set from the user defined input (a = [1 3 8 6 10 5 . . . ]). • Step 2. Write a Function to...

2

answers

Econometric modeling is essential for analyzing economic data, making forecasts, and informing policy decisions, however, traditional approaches often require extensive coding expertise, making them inaccessible to many economists and analysts. With the Econometric Modeler app in MATLAB, you can bui...

Categories:
Thumbnail

I am getting this "Matlab web app service failed to start" error when I try to execute the command - webapps-start. Log file says it can not find files. Not sure why. Please check the attached log...

0

answer

Polyspace includes in the MISRA-C:2012 ruleset some directives (D5.1 - D5.3), which are actually not part of the official document (see both screenshots) They were only added in the MISRA-C:2023 document, thats why I don't understand this deviation. Do you know the reason?

0

answer

learn the Simscape language with a basic behavioral battery example

Thumbnail

Generative AI has become one of the most influential trends of recent years, powering tools like ChatGPT and Copilot that have transformed how we live and work. Beyond these domains, generative AI is also reshaping industries, and robotics is no exception. At MathWorks, we are excited to explore how...

Categories:
Thumbnail

fart

Thumbnail

Function [F, FT, PHASE] = dft(t, signal, fi, ff, res, p, cursor) calculates the Discrete Fourier Transform (DFT)

Thumbnail

The function [F, Gain, Phase] = plotBode(num, den, fi, ff, res, p, cursor) calculates the frequency response of a transfer function in s

Thumbnail

根据人类视觉特点,提供最显眼的作图配色方案

Thumbnail

In the world of Analog/Mixed-Signal Integrated Circuit (IC) design, transfer functions have long been the go-to method for representing and analyzing linear time-invariant (LTI) circuits. However, this traditional approach comes with its own set of limitations: Single-Input-Single-Output (SISO) Lim...

Categories:
Thumbnail

This week I received a series of interesting questions on the basics of putting together a simulation of a control loop involving a Simscape continuous plant and a discrete controller. The questions are summarized in this image:Here are my answers to those questions.Discrete ControllerI recommend im...

Thumbnail

Do you boast about the energy savings you racking up by using dark mode while stashing your energy bill savings away for an exotic vacation🌴🥥? Well, hold onto your sun hats and flipflops! A recent...

3

replies

tiledlayout(4,1); % Plot "L" (y = 1/(x+1), for x -1) x = linspace(-0.9, 2, 100); % Avoid x = -1 (undefined) y =1 ./ (x+1) ; nexttile; plot(x, y, 'r', 'LineWidth', 2); xlim([-10,10]) % Plot "O" (x^2...

1

reply

I've been trying this problem a lot of time and i don't understand why my solution doesnt't work. In 4 tests i get the error Assertion failed but when i run the code myself i get the diag and antidiag correctly. function [diag_elements, antidg_elements] = your_fcn_name(x) [m, n] = siz...

Tags:

4

replies

Today's guest blogger is Francesco Bellucci, a PhD student in Mechanical Engineering at Department of Industrial Engineering of the University of Bologna. Francesco has a passion for helping young minds and has been actively involved in mentoring a team of young students, aged 13-14, from a se...

Thumbnail

In this problem, you are tasked with rotating a given matrix by 90 degrees in a counter-clockwise direction. The input will be a square matrix (i.e., the number of rows is equal to the number of...

On 27th February María Elena Gavilán Alfonso and I will be giving an online seminar that has been a while in the making. We'll be covering MATLAB with Jupyter, Visual Studio Code, Python, Git and...

0

reply

You recently bought an electric kettle for your kitchen, and you want to estimate how much it costs to run every month. The kettle operates at 230V and consumes 2000W (or 2kW) when in use. You...

Tags:

A voltage divider is a simple circuit used to obtain a reduced voltage from a higher voltage source using two resistors in series. The output voltage (Vout​) is given by the formula:​​Where:Vout​ is...

Tags:

In an electrical circuit, the current (III) flowing through an LED is determined using Ohm’s Law:​​Where:I is the current in amperes (A)V is the supply voltage in volts (V)Vf​ is the forward voltage...

Tags:

The energy (EEE) stored in an inductor is given by the formula:Where:E is the energy in joules (J)L is the inductance in henrys (H)I is the current in amperes (A)Write a function that takes...

Be Part of MATLAB Central

Community Video
MATLAB Answers

Ask & Answer questions about MATLAB & Simulink!

File Exchange

Download or contribute user-submitted code!

Cody

Solve problem groups, learn MATLAB & earn badges!

Blogs

Get the inside view on MATLAB and Simulink!

Discussions

Connect with fellow users!

AI Chat Playground

Use AI to generate initial draft MATLAB code, and answer questions!

Go to top of page