MATLAB QUESTIONS & EXPERT ANSWERS

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

Illustration
How to create several figures in a subplot with different axes?
RicardoDuarte - 2024-06-29

Dear all, I'm trying to create a subplot with 7lines and 1 column that plot all of my results consecutivelly. I have this piece of code: subplot(7,1,k...

How to change x-axis ticks labels in stackedplot?
Ammy - 2024-06-28

h = stackedplot(rand(6,3)); I want to set x-axis ticks according to my own defined set i.e., instead of 1:6, I want to replace x-axisticks [1, 2,3 ,4,...

How to put a timeout to ginput?
Akshat - 2024-06-27

I want to show user a figure, and ask them to click somewhere within a stipulated time limit, like 2 seconds. I am using ginput as follows, but it see...

how to reshape a matrix in matlab using reshape function?
odun54.edu - 2024-06-11

understanding the reshape function...

Want to get the Highest maxima and Lowest minima form all local maxima and minima.
ehtishamr96 - 2024-06-07

Want to get the Highest maxima and Lowest minima form all local maxima and minima. I am using the Islocal maxima and minima function but still not get...

Is there any forecast about a CUDA driver that can fully exploit the potential of the Apple MacBook M2 GPU?
mauro.zigliotto - 2024-05-28

I have a MacBook Pro M2 Max with an Nvidia GeForce® RTX™ 4070 GPU running macOS Sonoma 14.5. Matlab 2024a states that 'GPU acceleration with Parall...

When using Simulink in a dSpace Real Time Model, how can you get machine date and time into the model
mjmaginley - 2024-05-24

Without using datevec,  how can I get machine / computer real date and time into a simulink model for dSpace Real Time simulation?  ...

How to adapt the matlab code which is produced by classification learner?
ZaidAlyasseri - 2024-05-24

I have EEG dataset which is content 109 subjects and the EEG signals recorded from 64 electrodes. While the AR coefficients extracted as features. The...

How can we improve multi step prediction performance
seemantee - 2024-05-22

My performance is .07 but in close loop performance mse value 3.1254 is coming...

How can I add new data to specific row and colum of a matrix?
ain - 2024-05-20

Eg: A = [1 2 5; 3 4 6; 7 8 9]; i want to make it A = [1 0 2 5; 3 0 4 6; 0 0 0 0; 7 0 8 9];...

Get a Free Consultation or a Sample Assignment Review!