Community Profile

# Chameleon17

### The James Hutton Institute

Aktiv seit 2015

Followers: 0   Following: 0

#### Statistiken

Abzeichen anzeigen

#### Feeds

Anzeigen nach

Frage

How to get cumsum to work on consecutive values and restart if there is a 0 value?
Good Afternoon, Say I had a a vector G = [ 0 0 1 1 1 0 0 0 0 1 1 1 1 1 1 1 0 NaN 0 NaN 0 0 0 0] and I wanted to ge...

etwa 6 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

How to take an average every four columns?
Hi, I have seen similar questions but I am getting stuck altering the code for what I want. I have a matrix of (64 x 18144), eac...

etwa 6 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

Advice on how to speed up code?
Good Afternoon, I am a novice with coding and am looking for some advice on how to speed up this code I've written if anyone...

etwa 6 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

How to index from three vectors?
Hi, I think this is quite simple but I'm missing something. I have three vectors A = [0 1 0 1 0 0]' B = [0 1 1 0...

etwa 6 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

Date Conversion Not Working Again
Hi, I'm sorry for posting a similar problem again - I keep encountering it and I'm not sure what i'm doing wrong. I simply want...

mehr als 6 Jahre vor | 0 Antworten | 0

### 0

Antworten

Frage

Date conversion, works for one set but not the other, why?
Hi, I have a problem which I hope is a simple fix and I am just not seeing the solution. I am converting two sets of dates. ...

mehr als 6 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

Plotyy - overlapping bars and horizontal lines
Good Afternoon, I am trying to plot some data in a bar chart but I require two y axis for scale reasons and am thus using pl...

etwa 8 Jahre vor | 0 Antworten | 0

### 0

Antworten

Frage

How to improve the speed of of this function?
Good Morning, I am looking for some advice regarding improving the efficiency of my code. I have a simple loop I am running but ...

etwa 8 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

xlsread not able to reference my sheet names.
Good afternoon, I've never had this problem before, I'm certain it must be a pretty easy fix. I'm trying to open an exce...

mehr als 8 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

Subscripted assignment dimension mismatch Error, How to find the cause?
Good afternoon, I'm stuck again on what I think is a minor problem but I can't seem to figure how to get around it. I k...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Subtracting two matrices of date values
Good afternoon, I'm editing this a great deal, as I've been going round in circles with this problem all day from differe...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Comparing Matrices and Printing the result of the comparison
Good Afternoon, I am looking for a bit of advice. If I had say: Mat1 = [0 0 0 0 0 0; 0 0 13 0 0 0; 0 0 0 0 25 26; ...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

How to combine vectors based on value?
Good Afternoon, Another quick question. Say I have a matrix, B = [732145 732151 732168 0 ...

mehr als 8 Jahre vor | 3 Antworten | 0

### 3

Antworten

Frage

Extending a vectors length with zeros
Good Afternoon, I'm trying to extend the length of a vector, say it is 1x3 double. and I want it to be the same length as an...

mehr als 8 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

Trouble replacing one matrix values with vector values.
Good Morning, I have a simple problem again, if anybody has any thoughts. I keep getting an error in this bit of code bu...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

How to overlay pcolour figures?
Good afternoon, I am after a bit of advice again, if anyone has any time. I've looked in the directory and at prev...

mehr als 8 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

Storing Multiple large matrixs on a loop
Good Afternoon, I have another probably quite basic query as usual. I am generating a series of matrix's on a loop, 501x...

mehr als 8 Jahre vor | 0 Antworten | 0

### 0

Antworten

Frage

Sub indexing into cells
Hello, I am wondering if anyone can give me any pointers on a topic. I have a logical vector of true false the same numbe...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Format Issues - will not accept a character or a double
Hi, I'm having another really basic problem. I want to use a different source for each plant, but it really doesn't like...

mehr als 8 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

Strrep for multiple rows?
I have two vectors of dates, some of the zero dates are 30-Nov-0000 and some are 00-Jan-0000. I want to convert the 30-Nov-00...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Storing Data in Zero Vectors
Good Evening, I have a very simple question which I have been struggling with. LocationSquares = zeros (1:500) out5 = Co...

mehr als 8 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

How to correct for 'Undefined function 'eq' for input arguments of type 'cell'' error message
Hi, I have a simple bit of code and keep getting an error message, >> for Area = 1:652 if Area...

mehr als 8 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

Good Afternoon, I have another probably easy to answer question. If I have a table like the one below. Is it possibl...

mehr als 8 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

Store Data Using a for Loop
Hi, For each year in a ten year period: *Location = storage space 1:652 made earlier in the script *day_of_year = colu...

fast 9 Jahre vor | 0 Antworten | 0

### 0

Antworten

Frage

How to store data in a for loop?
Hi, I'm certain this is quite a basic and simple problem I'm having, but I've can't seem to figure it out. I have data I'...

fast 9 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Concatenate Columns of Cells
Hi, I have asked this question earlier, but I think I have though of how to better phrase it. Columns 1 through 5 ...

fast 9 Jahre vor | 3 Antworten | 0

### 3

Antworten

Frage

How do you maintain value order when removing zeros from a matrix?
Hi, I am trying to remove zeros from my matrix, so I have one column of dates, but they need to be maintained in the right...

fast 9 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Replacing Matrix Cells with Date Values
Hi, I am trying to replace the 1 values in a large matrix of cells with the date value stored in a single row. Matla...

fast 9 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

How to index on a loop for first occurrence?
Hi, I have a set of data which I would like to loop through for each row. I would like for every row, the first occurren...

fast 9 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

Error in conversion of dates to empty year vectors.
Hello, I'm VERY new to coding in MatLab. I am trying to create a time series to compare two data sets. I'm stuck on ...

fast 9 Jahre vor | 0 Antworten | 0

Antworten