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 194 of 208 Ask a Question
how to set x axis into hours
ishitaisha6840 · Sep 2, 2020 · matlab , plot , x axis

i have problem . how to i set the x axis into hour. i have 10080 data and each one represents one minute of data. i want to represents x axis with 24 hour, how can I make like that…

How to create random vectors of the same lengths?
kellysmith9 · Sep 2, 2020 · matlab , vector , plot

I am trying to get a random vector (2D) of the same length, say 'x'. I thought about creating a list of numbers -1 to 1 for x values and then another one for from 1 to -1 for y val…

How to change ylabels in a for loop
Gracesmith97 · Sep 1, 2020 · loop , matlab , plot

Hello everyone, I have a simple for loop to plot 7 different plots, but the ylabel should be different.   for k=1:7; figure bar(GAMMA_sta(k,:)) xlabel('Rock Types'); title( [ 'Sta…

Help with plotting multiple line complete with legends.
shivraghav · Aug 31, 2020 · matlab , plot , plotting

, This question has a few parts so bare with me if it seems confused, I'll try my best to be clear. My problem is this, I want to plot 11 lines in different colours on the same gra…

How to put stacked plots in the same graph
johnwilson92 · Aug 31, 2020 · plot , matlab , plotting , graph

Hi, I want to put eleven plots in the same graph but separately i. e. all them will be in same x axis but in different scales in the y axis. For example: first graphic starts in 0 …

How do you make a COMPASS plot completely transparent?
johncrazliva032 · Aug 31, 2020 · plot , matlab , plotting

Some background info: I've been using the following two commands to make plots transparent:   set(gcf,'color','none'); set(gca,'color','none'); and then using export_fig to export…

How to draw a verical line to x-axis in a graph?
Mariahernandez · Aug 31, 2020 · matlab , plot , plotting , graph

If a = [1 2 3 4 5 6 7]; and b = [1 4 7 10 7 4 1]; and the plot it by : figure,plot(a,b), how can I draw let's say a red line vertical to the value 3 and 5 in the x-axis? So that i …

Get a Free Consultation or a Sample Assignment Review!