질문

Fitting a straight line to a set of 3-D points

Hi there, please can someone help me fit a straight line to my data? It's in 3-D I have done it in 2-D before but have no idea...

7달 전 | 답변 수: 1 | 0

질문

Calculating Error and intercept on a log plot

Hi there, this is the code/ data I have. Please note I have already taken the logs so that the data is scaled appropriately. ...

7달 전 | 답변 수: 1 | 0

질문

export frequency data from a histogram

Hi there, I have a histogram that looks like this: and I would like to extract the frequency data (y-data) so I can make a s...

7달 전 | 답변 수: 1 | 0

질문

using nchoosek to gather possible combinations of data

Hi there , I am trying to use 'nchoosek' for the data that i have that contains 15 sets of x,y,z coordinates. I want to find al...

7달 전 | 답변 수: 1 | 0

질문

plot texture map for Turkey

Hi there! I am wanting to plot an image similar to the one below but for Turkey/ Middle East. This is the code I have: h=...

7달 전 | 답변 수: 0 | 0

질문

compute iterations to calculate pairs of data that do not repeat

Hi there I have 15 sets of x,y,z data points. I want to compute 105 possible combinations of these points using a computational ...

7달 전 | 답변 수: 1 | 0

질문

Plot data points as points when using 'errorbar'

Hi there, I am trying to plot errorbars around my datapooints. The relevant command I am using is below ( script relies on oth...

7달 전 | 답변 수: 1 | 0

질문

Getting the correct y-intercept and gradient for a trend line using 'fit'

Hi there, I have this code and I would like to get the correct y-intercept (and gradient) for my slope. You can see from the i...

7달 전 | 답변 수: 1 | 0

질문

using 'fit' to add a trend line to series of scatter points

Hi there, I am trying to add a trendline to a series of scatter points that represent geographic locations and have an estimat...

7달 전 | 답변 수: 1 | 0

질문

plotting a series of lines with specified colours

Hi, I am trying to plot a series of lines on a single plot in Matlab2018. I have specified the colours correctly and checked t...

8달 전 | 답변 수: 1 | 0

질문

Plot frequency along the y-axis without using a histogram

Hi there, I am trying to generate a plot like this (please see image attached) and I have an example of my data/ code below. Ple...

8달 전 | 답변 수: 1 | 0

질문

Using two colormaps on the same image (no subplots)

Hi there, I have this code as shown below and I am trying to plot a colormap for topography first and then plot some data as a s...

8달 전 | 답변 수: 1 | 0

질문

Extract all numbers from a matrix that also contains NaN into a single vector

Hi there I have a large matrix that contains numbers (both positive and negative) and NaN. I need to find the median of this mat...

8달 전 | 답변 수: 1 | 0

질문

Change the aspect ratio of x,y to plot Longitude and Latitude correctly ( I have the conversion needed- need help implementing it)

Hi there, I am wanting to change my x,y axis to reflect true longitude and latitude scales. The conversion is: 1 degree of l...

8달 전 | 답변 수: 1 | 0

질문

Add les than or equal to inequality to my legend

Hi there, Is there a way to get inequalities to display normally in a plot legend e.g. >= Many Thanks

8달 전 | 답변 수: 1 | 0

질문

Specify color to plot in using cellfun(@(B) plot(B(:,1), B(:,2)), blocks)

Hi there, i am using this function to plot a series of data. My data is a combination of blocks and it is showing them on the ...

8달 전 | 답변 수: 1 | 0

질문

How do I read data (from a .dat file) seperated by lines of text into individual vectors

Hi there, I am struggling to read in a .dat file correctly. The file has a bunch of headers starting with #s at the beginning ...

9달 전 | 답변 수: 1 | 0

질문

Plot ellipsoids with an azimuth angle

Hi there, I have found this code online to plot an ellipse. However, the data I have contains the azimuth of the ellipse. How ...

9달 전 | 답변 수: 1 | 0

질문

if statement for colour coding data

Hi, I have latitude, longitude and depth data. I am wanting to create a 2D plot of Lat Vs Long and plot the depth shown as a...

9달 전 | 답변 수: 1 | 0

질문

Fill my plot with a colour

Hi I have made the attached image but want to fill the plot inside with the colour: [1 0.92 0.8]. Does anyone know how to do t...

9달 전 | 답변 수: 1 | 0

질문

3d plotting of Lat, Long and depth

Hi, I am trying to create a 3D plot - please see attached image. However, i need to flip the scale so that the depth (km) in...

9달 전 | 답변 수: 1 | 0

질문

Plot .grd file

Hi there, I am relatively new to matlab and am using it for a very important project. I am hoping to use a .grd file to plot a t...

9달 전 | 답변 수: 1 | 0

질문

Plot markers as a continuous line

Hi there, I am trying to plot lots of points representing a seismic fault over some topography. I am plotting the data in the fo...

9달 전 | 답변 수: 2 | 0

질문

What is the decimal RGB scale used in Matlab called?

Hi there, I have been trying lots of websites to find colours for my plots. The colours i find on webistes that are RGB are on...

9달 전 | 답변 수: 3 | 0