Community Profile

photo

Robert


Flinders University

Active since 2014

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


Make legend circles/squares instead of lines
I Have the following code, which produces the attached image. What I would like to do is have the lines in the legend as squares...

mer än 7 år ago | 1 answer | 0

1

answer

Question


Problems with legend using imagesc
I have the following code, I have adapted it from another code and I think that is where I am getting stuck. basically I have...

mer än 7 år ago | 1 answer | 0

1

answer

Question


netcdf file won't load
I have 3 netcdf files all from the same source. 2 of them are loading fine using ncload (after running the nc toolbox) but one h...

nästan 8 år ago | 1 answer | 0

1

answer

Question


Finding Annual Amplidute for each of multiple years
I have 12 years of monthly temperature data (144 points). I want to find the annual amplitude, the max value minus the min value...

nästan 8 år ago | 1 answer | 0

1

answer

Question


For loop isn't working, unsure as to why
In the following code, 'forrest', 'shrub', 'sav', 'grass' and 'agri' have all been initialized at 35*43 matrices of NaNs. 'lu...

ungefär 8 år ago | 2 answers | 0

2

answers

Question


imagesc make all negatives values black
I have the following code which is part of a subplot series. I want to change it so that all negative values become a certain co...

ungefär 8 år ago | 1 answer | 0

1

answer

Question


Imagesc split pixel into 2 different colours?
I am using imagesc to plot a map. There are 8 possible variables that can be included in a pixel, hence the plot is of values 1-...

ungefär 8 år ago | 1 answer | 0

1

answer

Question


Match NaN's in one Matrix to another
Consider 2 matrices A = [1, 2, 3, 4; 5, 6, 7, 8] B = [NaN NaN 1 1; NaN 1 1 NaN] How can...

ungefär 8 år ago | 1 answer | 0

1

answer

Question


If isnan(x) make columns also NaN
I have a horizontal array or data 1:1505 made of Nans and 1s (inA4) I also have a matrix of data 96:1505 (Approx4) Where e...

ungefär 8 år ago | 2 answers | 0

2

answers

Question


Stepwisefit changing yy variable...
I have written a code for a stepwise regression. Usually there would be one yy variable and multiple xx variables. Part of the d...

ungefär 8 år ago | 0 answers | 0

0

answers

Question


How can I stack multiple Matrices in 1 2D matrix?
I have a 3D Matrix (96,35,43) I want to change it to (3360,43) so that each 35x43 matrix is below the previous How can I d...

mer än 8 år ago | 1 answer | 0

1

answer

Question


Stepwise fit wont run through loop, can't find a way around the problem.
You will see from my code below That I load some data, then in a for loop a adjust it according to a pre-determined lag and run ...

mer än 8 år ago | 0 answers | 0

0

answers

Question


Fill blank spaces from lagged data with NaN
I have a code which lags one data set in relation to another. The lag is determined based on r^2 values previously figured out. ...

mer än 8 år ago | 1 answer | 0

1

answer

Question


Add a 2D matrix to a 3D matrix in a specific location
Say I have 2 Matrices A = 10x10x10 B = 10x10 I want to ad B to A at a certain dimension e.g. (:,:,6) such that A beco...

mer än 8 år ago | 2 answers | 0

2

answers

Question


Writing outputs from a 3D matrix loop
I have a 3D matrix 35,43,144 I want to run the following code such that it performs the function element by element through t...

mer än 8 år ago | 1 answer | 0

1

answer

Question


Looping through a 3D matrix
I have a 3D matrix 35,43,144 I want to run the following code such that it performs the function element by element through t...

mer än 8 år ago | 1 answer | 0

1

answer

Question


Adding matrices to a 3D matrix in a specific order
Say I have a 3D matrix 50x50x100 Now I want to add another matrix to make it 50x50x101, however I want the new matrix to go i...

mer än 8 år ago | 1 answer | 0

1

answer

Question


How can I make elements in a matrix NAN where they don't match that of another matrix?
suppose I have a matrix A = [1,2,NaN 4,5,6] and B = [12,3,4 4,5,67] I want C = [12,3,NaN ...

mer än 8 år ago | 1 answer | 0

1

answer

Question


dlmwrite with specific titles in loop
I have the following code %96 Matrices are loaded above and grouped as "A1" A1Janstack = cat (3,A11,A113,A125,A137,A14...

mer än 8 år ago | 1 answer | 0

1

answer

Question


Subtracting multiple matrices from the same matrix
I have a 3D matrix (35,43,144) and a 2D matrix (35,43) I need to produce 144 new 35x43 matrices by subtracting the 2D matrix ...

mer än 8 år ago | 1 answer | 0

1

answer

Question


imagesc Make all zeros white and all <zeros grey
I asked a very similar question a few hours ago and was given the answer I was looking for at the time, but I have jsut realized...

mer än 8 år ago | 1 answer | 0

1

answer

Question


imagesc make all zeros white?
I have the following code. The output is a matrix and I want all of the zeros to be displayed as white. How can I do this? ...

mer än 8 år ago | 1 answer | 0

1

answer

Question


Error on line 28 of a 9 line code?
I have 365 text files of data, one for each day of the year. I have this code to create 12 new text files, monthly averages. ...

mer än 8 år ago | 2 answers | 0

2

answers

Question


Running a validation model using Stepwisefit
I have produced the following code. It does 1505 stepwise regression with 8 predictor variables (a regression for every pixel of...

nästan 9 år ago | 1 answer | 0

1

answer

Question


Using 1s and 0s to change data to NaN
Suppose I have 2 arrays A = [1,2,3,4,5,6,7,8] B = [0,1,1,0,1,0,0,1] I only want to keep the numbers that match 1s in ...

nästan 9 år ago | 1 answer | 0

1

answer

Question


index out of bounds because... can't solve error
I am performing a stepwise regression and looping through data, this performs 6 stepwise regressions. I then try to output some...

nästan 9 år ago | 1 answer | 0

1

answer

Question


How can I read all text files in a folder without making a struct?
Using the function x = dir ('*.txt') gives a struct (1x127) I want to read my 127 text files (matrices) in individually, not ...

nästan 9 år ago | 1 answer | 0

1

answer

Question


Splitting a Matrix and saving results
I have a matrix (35x5461). I need to split it into 127 matrices of (35x43) Then each matrix needs to be saved as an ascii wit...

nästan 9 år ago | 1 answer | 0

1

answer

Question


Too many output arguments error in my code
I have the following code, I am trying to get all of the wavelet approximations out (it works fine with details, but not approxi...

nästan 9 år ago | 1 answer | 0

1

answer

Question


Merging Multiple text files
I have 1505 text files, each 96x6. I want to be able to merge them such that file 2 is below file 1, file 3 is below file 2 etc ...

nästan 9 år ago | 3 answers | 0

3

answers

Load more