MATLAB QUESTIONS & EXPERT ANSWERS

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

Illustration
How to add minor ticks to a graph from the command lines?
Evasmith95 - 2020-08-28

I want to to add the Minor Ticks from the command line. Currently, I'm editing the Major Ticks as follows: set(gca) set(gca,'XTick',0:1:7) set(gca,'YT...

How to show a image logo in axes?
annabelletaylor - 2020-08-28

i want to show the logo off my school at the top off the window in my project. i must define the axes function like this? this isn't correct, how do i...

Why does the axes in my GUIDE-built GUI lose its 'tag' string when I reopen the GUI in GUIDE?
johnwilson92 - 2020-08-28

I have created a GUI using the GUIDE tool, which includes an axes object. In these axes, I want to initialize a plot or image, which I achieve in the ...

Why do plot related commands by default overwrite existing axes properties in MATLAB?
nandnisingh - 2020-08-28

I have three figure windows and execute HOLD ON without specifying to which axes I want to apply HOLD ON. The axes I am interested in is not currently...

how to make grid lines closer in x axis and y axis
sophiawilson96 - 2020-08-27

I have written this code   h1336 = []; L=50; fs=8000; fb=1336; h1336 = (2/L)*cos(2*pi*fb*(0:L-1)/fs); [H,F] = freqz(h1336,1,[],fs); subplot(2,1,1) pl...

How to plot a vector using a variable that contains the name of the vector.
ava.smith01 - 2020-08-27

I have a vector called collection with some elements: collection = [1 2 3 4 5 6 7 8 9 0]; I also have a variable called x that stores the string 'coll...

How to plot a function, typed in a textfield (GUI), as a function handle?
johncarter - 2020-08-27

Why does the following don't work or what needs to be added?   % --- Executes on button press in pbCalculate. function pbCalculate_Callback(hObject, ...

How to change the color of a graph only in a particular section?
Mariahernandez - 2020-08-27

I was just wondering if there is a way to change a particular part of a plot to another color? Suppose we have a plotted signal in BLUE and we wannan ...

How do I get the figure position from a plot?
ishitaisha6840 - 2020-08-27

I create a 3D contour plot like this:   [C,h]=contour3(w,p,green1,30); t=clabel(C,h); get(t(1)); This created a 3D plot and this output: Annotation =...

Can I change the axis scaling after plotting is done?
Anderson85 - 2020-08-26

I have a function that plots a graph with time on the x-axis, sometimes I want to change the scaling from s to ms or whatever. Can I somehow do that w...

Get a Free Consultation or a Sample Assignment Review!