MATLAB Solutions & Expert Answers

Ask an expert. Trust the answer.
Academic and engineering questions answered by verified MATLAB professionals.

MATLAB expert answering student questions
Showing page 25 of 208 Ask a Question
why am I getting 'ugly' output?
Muazma Ali · Oct 24, 2023 · MATLAB , Language Fundamentals , Data Types

combinations_available=input(['Enter the number associated with the combination of salts available. Enter 0 if none of the combinations are available.'... '\n1:Two of these chlorid…

How to find the point of interception between the two lines?
ZenithWoman · Oct 24, 2023 · MATLAB , Mathematics , Numerical Integration and Differential Equations

I have two y values, second and third columns in the attached matlab file. I am looking for the point of interception of the two lines. I have interpolated the two y values to get …

How do I extract the audiodata from a struct that I got from dir
Wynand · Oct 23, 2023 · Test and Measurement , Data Acquisition Toolbox , Multichannel Audio Input and Output

I have a folder with 100 wav files I need to iterate through and apply different functions to This is what I have so far   clear % Tester_object = audioread("Recordings\Speaker Fe…

how to stop ode45 when one of states reach certain value
Mohamed Aburakhis · Oct 23, 2023 · MATLAB , Mathematics , Numerical Integration and Differential Equations

[x_dot] =derivative(t, x)   x is states [x(1).....x(4)] I need to stop the integration when x(3) reaches 0.1 when the integration stop record (t)…

Why can't I make a boxplot with data overlay?
Brenno Selli · Oct 21, 2023 · MATLAB , Graphics , Formatting and Annotation , boxplot

Here we go... So, I have the following boxplot, the values on the X-axis are spaced by 1, which is fine and I understand why, but I need to find a way to do the same boxplot, but w…

How to create an attention layer for deep learning networks?
Mohanad Alkhodari · Oct 21, 2023 · deep learning , attention , cnn , AI, Data Science, and Statistics

Hello, Can you please let me know how to create an attention layer for deep learning classification networks? I have a simple 1D convolutional neural network and I want to create a…

How to change the scale of color bar to discrete ?
intanfifizieana · Oct 20, 2023 · MATLAB , Graphics , Formatting and Annotation , colorbar , contourplot

hi, I have my contour plot like this figure, I want to change the scale of colorbar to a discrete one with the scale value [ 0, 0.1 ,0.2 ,0.3 ,0.4 ,0.5 ,0.6 ,0.7 ,0.75 ,0.8 ,0.85, …

how to define mpc object's plant as state space ?
Aman Shah · Oct 20, 2023 · Control Systems , Model Predictive Control Toolbox , Matlab

how to define the mpc object's plant as state space rather than transfer function. i tried to run this code but not working.     % Define system matrices (Ad, Bd, Cd, Dd) for the…

Get a Free Consultation or a Sample Assignment Review!