Feeds
질문
Assigning variables based on corresponding grid cells traversed by a line on a 2D grid plot
Hi, Assuming I have a 3x3 grid as follows, where the blue line is connecting two points (the red crosses): How would I code ...
대략 6년 전 | 답변 수: 0 | 0
0
답변질문
Rearranging an equation containing the linsolve function
Hi folks, I have used the following equation to determine A: A = linsolve(CoefficientsMatrix,Residuals) For determining A, Co...
6년 초과 전 | 답변 수: 1 | 0
1
답변질문
Solve 100 equations, each with a different amount of unknowns in matlab
Hi folks, I have 100 equations which I want to solve simultaneously. There are 9 unknowns (A, B, C, D, E, F, G, H, J). Not eac...
6년 초과 전 | 답변 수: 1 | 0
1
답변질문
Why does this code output all values as 1?
Hi there, I'm trying to program a piecewise geometric function into matlab: I have written the code as follows. If anybody ca...
6년 초과 전 | 답변 수: 2 | 0
2
답변질문
Principal Component Analysis Reconstructing Centred Data
Hi, I have the following dataset which I have performed PCA on: DATASET = 10.0000 6.0000 11.0000 4.0000 8....
6년 초과 전 | 답변 수: 1 | 0
1
답변질문
Find flattest line from matrix of vectors plotted against x values
Hi there, I have a matrix of y-axis coordinates, which I'm plotting against a constant set of x-axis coordinates. I want to det...
거의 7년 전 | 답변 수: 1 | 0
1
답변질문
'The 'Start' matrix must have the same number of columns as X.' - Error when using Kmeans
Hi, I want to carry out an iteration of k-means clustering. I am using the tutorial found at https://uk.mathworks.com/help/sta...
거의 7년 전 | 답변 수: 2 | 0
2
답변질문
Can't loop k-clustering gap stat function
Hi folks, I want to loop the following function 20 times to determine the mode of the "OptimalK" output from the evalclusters...
거의 7년 전 | 답변 수: 0 | 0
0
답변질문
Call first row from zero-padded matrix - only call the non-zero values
Hi folks, I have a zero-padded matrix. I'm aware A(:,1) would call the first row of matrix A, but I want to only call the val...
대략 7년 전 | 답변 수: 1 | 0
1
답변질문
Remove empty rows from matrix
Hi folks, I have the following matrix: 0.6857 0.1248 0.9636 1.0884 0.4807 0.6077 0.3644 0 ...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
Save variable from each run through of a loop into .mat file?
Hi folks, I have my looped function if true for Z = 1:length(ev_longitude) x1 = -4:10; ...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
Save variable in workspace but remove from memory?
Hi folks, I've managed to loop my function to (correctly) determine the distance travelled by each line through the grid cell...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
Convert cell array to two row vector
Hi folks, I have the following cell array: hvix = [2x1 double] [2x8 double] [2x15 double] [2x1 d...
7년 초과 전 | 답변 수: 2 | 0
2
답변질문
Store sets of values as indices in a matrix?
Hi, I have a function which produces a set of horizontal and vertical graph axes intercepts. There are 120 sets of these int...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
Reshape matrix whilst maintaining pairs ordering
Hi, I have a 2 x 120 matrix which I'm trying to reshape to a 120 x 2 matrix. To do this I'm using the following code: y =...
7년 초과 전 | 답변 수: 1 | 0
1
답변답변 있음
Loop to carry out calculation for pairs 1 and 2, then pairs 2 and 3 and so on.
Cheers folks! Works great.
Loop to carry out calculation for pairs 1 and 2, then pairs 2 and 3 and so on.
Cheers folks! Works great.
7년 초과 전 | 0
질문
Loop to carry out calculation for pairs 1 and 2, then pairs 2 and 3 and so on.
Hi, I have two 8x1 matrices. One matrix is list of longitude coordinates (Final_Longitude_Values). The other matrix is the co...
7년 초과 전 | 답변 수: 3 | 0
3
답변질문
Calculate how far a line travels through each square in a grid created using the meshm function
Hi, I have plotted a grid using the meshm function over a map with earthquakes and seismic stations plotted. Between each earthq...
7년 초과 전 | 답변 수: 0 | 0
0
답변질문
Overlay a grid on a map
Hi, I have produced a map (using the worldmap function) with latitude limits of 55 to 65 and longitude limits of -5 to 10. I ...
7년 초과 전 | 답변 수: 0 | 0
0
답변질문
Plot travel path of earthquake to a seismological station
Hi, I have 4 column vectors: Station latitude, station longitude, earthquake epicentre latitude and earthquake epicentre long...
7년 초과 전 | 답변 수: 0 | 0
0
답변질문
Merge two columns of a cell array into one
Hi, I have two columns of cell values: <</matlabcentral/answers/uploaded_files/105933/Untitled.png>> I want to merge t...
거의 8년 전 | 답변 수: 1 | 0
1
답변질문
Plotting text on the x-axis for residual analysis
Hi, I want to plot residuals against station name with station name on the x-axis. The x-axis values are in a 192x1 cell arra...
대략 8년 전 | 답변 수: 1 | 0
1
답변질문
Determine averages for duplicate values
Hi, I have a cell array (11708 x 1) called "merged" where each value is the station name and the channel. I also have the re...
대략 8년 전 | 답변 수: 1 | 0
1
답변질문
Find values outside of a range when calculating residuals.
Hi, I'm trying to find all my residuals above 3 and below minus 3 and extract the corresponding records to an excel sheet. I kno...
대략 8년 전 | 답변 수: 1 | 0
1
답변질문
Plot categorical data as data labels on an x,y plot
Hi, I've plotted distance on the x-axis and acceleration on the y-axis. These values are from a string array. Within this...
대략 8년 전 | 답변 수: 0 | 0
0
답변질문
Removal of spike at beginning of filtered signal time series plot
Hi, I have several plots of a filtered signal, all of which have a spike at the beginning which I would like to remove. Is th...
대략 8년 전 | 답변 수: 1 | 0
1
답변질문
Sum all answers from structured array field
Hi, I'm trying to sum all values from one field of a structured array: (X(k(1:end)).NumberSamples) ans = 369...
대략 8년 전 | 답변 수: 1 | 0
