Home - MATLAB Central

Uno scambio aperto per le Community degli utenti di MATLAB e Simulink


I'm trying to use From File block to read a .mat file with timeseries data into my workspace. I have tried to closely follow the instructions at Load Data Using the From File Block. But after...

0

answer

Hello I was trying to create a custom FFT layer but I'm getting errors, either 'cell' data type related as in 'brace indexing isn't supported' or 'data type isn't supported'. The custom layer is followed by a 2d CNN and defined after the imageinputlayer. I hav...

1

answer

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

0

reply

I have created a part model of a fuel cell system where my end goal is to find how much power can be recovered from an expander in the fuel cell system. I am using MATLAB to code firstly the fuel...

0

answer

I have a translation stage that I want to move over a set of positions. While the stage is moving I want to record data collected from an oscilliscope. The data is collected in a function using a...

0

answer

I want to use the Haadi Saadat package/ Library for power systems analysis course with MATLAB.

1

answer

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

Diffusion map of time series or similarity matrix

Thumbnail

Reads AIM™ xrk/xrz data files using an AIM™ provided DLL

Thumbnail

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:

2

replies

Code for the determination of photoluminescence quantum yield from spectra including user interface

Thumbnail

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

Cloud Drift Optimization (CDO) Algorithm – A Nature-Inspired Metaheuristic

Thumbnail

answers

Thumbnail

Using the colon operator and the linspace function, create the following row vectors: −6,−5,−4,−3,−2-6, -5, -4, -3, -2−6,−5,−4,−3,−2 6,8,106, 8, 106,8,10 9,7,59, 7, 59,7,5 Provide the MATLAB commands for both methods (colon operator and linspace). Answer. v1 = -6:-2; v2 = 6:2:10; v3 = 9:-2:5; v1 ...

0

reply

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

MATLAB has two different ways to compute singular values. The easiest is to compute the singular values without the singular vectors. Use svd with one output argument, s1. s1 = svd(A) The...

Thumbnail

With 2025 well underway, we are taking a moment to reflect on the milestones of MathWorks startup program in 2024. Here's a look by the numbers: In 2024, we worked with over 900 new startups,...

Thumbnail

As we celebrate the 30th anniversary of Dynare, we at MathWorks would like to take a moment to reflect on its influence on the global economics community. Developed by Michel Juillard, Dynare has been a cornerstone in computational economics, enabling researchers and policymakers worldwide to model ...

Categories:
Thumbnail

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

In computer vision, pretrained models are often used and adapted to the task at hand by performing transfer learning. Transfer learning involves modifying and retraining a pretrained network with your data. Most pretrained models are trained on large, colorful image datasets like ImageNet. But how ...

Categories:
Thumbnail

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