MATLAB QUESTIONS & EXPERT ANSWERS

Ask an expert. Trust the answer.
Your academic and career questions answered by verified experts.

Illustration
Matlab mldivide returns NaN when there are multiple solutions
McCormack - 2024-11-18

I have two matrices:   A = [ -1 0 0; 1 1 -1; 0 -1 1 ]; B = [-1; 0; 1]; and I want to solve the following equation: Ax=B when I use mldivide functio...

MATLAB: Corr Function not working for Spearman
amina sundas - 2024-11-14

The Code   Rm = corr(timeModel, 'Type', 'Spearman'); Rm %First row of Rm contains the correlation coefficients between the values of avgExcTime and t...

How do I access a MATLAB UI function in another .m file?
Zucrode - 2024-11-07

I am attempting to declutter my MATLAB app code by separating some of the initialization into separate .m files. For this I have set up various files ...

Detect Keyboard Input Matlab
Gail Distefano - 2024-10-22

I have a simple question, although it's harder than it seems; I couldn't find the answer on the interwebs :O I'm writing a script in Matlab. What I wa...

I am trying to download the trial version of matlab and getting a following message
Srladde - 2024-10-22

Unable to connect to mathworks.For more information on resolving this issue,see this mat lab answer ...

How can I make the mean of 3d matrices in a cell in Matlab?
Lazaro Hernandez - 2024-10-16

I have a 1x12 cell in Matlab and each element of this cell has a 3d matrix. I want to make the mean of these 3d matrices, so that I obtain a 3d matrix...

The input dimension of self-attention
bin - 2024-10-14

MATLAB currently provides self-attention that can only input one sequence, but how to deal with two-dimensional images, for example, I want to input t...

How can I get rid of the large invisible border of my MATLAB figure without cropping it?
BenjaminCowen - 2024-10-08

Hey I have a question that would be super helpful to have an answer to. I am generating many MATLAB images. However, each image, when I copy figure to...

How To Plot Transfer Functions In Matlab?
AliDeniz - 2024-09-03

How can I plot this state space like the graph I attached by using tf() and step() command? Thank you! I2/E0=1/(s^3+s^2+3*s+1)...

How Can Replacing Characters In A String?
Crosby - 2024-09-02

I want to replace characters in a string using loops and if statements. For example if there is a Y in the string, I want to change it to a J. If ther...

Get a Free Consultation or a Sample Assignment Review!