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 9 of 208 Ask a Question
How to use fminunc for a 2D function composed of two functions?
Sergio · Jul 17, 2024 · Mathematics and Optimization , Optimization Toolbox , Optimization Results , Solver Outputs and Ite

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','Algorithm','quasi-newton');xy…

How to create several figures in a subplot with different axes?
RicardoDuarte · Jun 29, 2024 · subplot , axes , figures , 2-D and 3-D Plots , Line Plots

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); ax1=axes; imagesc(ax1,Xv,Yv…

How to change x-axis ticks labels in stackedplot?
Ammy · Jun 28, 2024 · MATLAB , Graphics , Formatting and Annotation , stackedplot , axis

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,5,6] to ['A', 'S','T', 'AAA', …

Get a Free Consultation or a Sample Assignment Review!