MATLAB QUESTIONS & EXPERT ANSWERS

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

Illustration
How to use fminunc for a 2D function composed of two functions?
Sergio - 2024-07-17

I have: and I want to minimize it on the unit square I use the following code, close all; clear; clc;options = optimoptions(@fminunc,'Display','iter',...

Print a statement to the Command Window-matlab answer
vivekyt.23 - 2024-07-10

I am writing a program. I want to display the statement 'job done' as the output in the Command Window. How can I do it?...

Why do I receive License Manager Error -10?
eliot23 - 2024-07-10

Why do I receive the following error? License Manager Error -10 License checkout failed. Feature has expired....

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

Get a Free Consultation or a Sample Assignment Review!