Community Profile

# Christina

Active since 2011

#### Content Feed

View by

Find closest values in an array of x and y coordinated compared to a given set of coordinates
Actually I found the solution: I created a table with the x and y coordinates: The small code is: *********** tabl...

mer än 7 år ago | 1

Question

Find closest values in an array of x and y coordinated compared to a given set of coordinates
Hello all, I've got two vectors of coordinates x = linspace(400000,500000,100) and y = linspace(100000,200000,100) ...

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

### 2

Question

How to interpolate between two vectors of timeseries and get outputs of the vector timeseries with the coarser resolution?
Hello all, I've got two vectors of timeseries and the corresponding datasets. 1. So, I've got time_observed = [2003-01-...

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

### 1

Question

Plot outside a for loop with different plotstyles
Hello all, I've got a vector a with 20 values and a for loop, through which I want to plot the variables var1 and b %%%...

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

### 1

Question

How to add an additional tick on y-axis for a combined boxplot and scatter plot?
Hello all, I've got 15 horizontal boxplots that reach up until y=1.6 and a scatter plot on the same figure, where the scatter...

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

### 2

Question

Cannot plot additional scatter points in a boxplot
Hello all, I've got 15 horizontaly orientated boxplots in the same graph with 15 column vectors (x1, x2... x15) each with a...

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

### 1

Question

Loading multiple .mat or Excel files and maniplulate them in a double for loop
Hello, I've got 3 .mat files, saved in an excel format as well with a size each 4x1. These are var1, var2 and var3. I'd...

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

### 1

Question

How can I load lots of files with a for loop and then multiply them by a vector
Hello all, I've got three .mat files each with size 100x1 variable1_data.mat variable2_data.mat variable3_data.mat...

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

### 1

Question

Create a vector with known indices and assign to that values from known vectors
Hello all, I've got three vectors, with size 1x5 var1 = [ 5 6 7 8 9] var2 = [11 12 13 14 15] var3 = [17 18 19 20 21...

mer än 7 år ago | 4 answers | 0

### 4

Question

Hold on command does not work for boxplot and additional plot
Hello all, I've got a boxplot (with horizontal orientation) with data: a= [x1;x2;x3;x4;x5;x6;x7;x8;x9;x10;x11;x12;x13;x...

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

### 1

Question

Command 'hold on' does not work for boxplot when overlapping a figure
Hello, I've got a boxplot with xlimits from 0.1 to 1.0 and from ylimits from 0 to 1.6. I want to overlap a plot of just 5 ...

mer än 7 år ago | 2 answers | 1

### 2

Question

Replace some values of a vector with another vector which has a different size
Hello I've got the vector: source = [ 0 0 1 0 1] and the vector a = [2 3], which has a different size to source. ...

mer än 7 år ago | 3 answers | 0

### 3

Question

Assigning values to vectors of different lenghts
Hello, I've got three vectors, say a(1x4), b(1x4) and c(1x10). Vectors a and c represent the same thing, they are just codes....

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

### 2

Question

Contour plot with 3 vectors and x, y vectors on a logarithmic scale
Hello, I've got 3 vectors x =[10^(-10) 10^(-9) 10^(-8) 10^(-7) 10^(-6) 10^(-5) 10^(-4) 10^(-3) 10^(-2)] y =[10^(-10) 10...

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

### 0

Question

How to write a large matrix to a comma separated file
Hello, I've got a huge matrix (20000 x 3000) and I want to write it to a csv file. Until now, where the size of my matrice...

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

### 0

Question

How to split x-axis (6 years of timeseries) with datetick into monthly intervals?
Hello, I've got my time series data of 6 years plus and I would like to plot them in that way so that in the x-axis I would ...

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

### 1

Question

How to split x-axis (6 years of timeseries) with datetick into monthly intervals?
Hello, I've got my time series data of 6 years plus and I would like to plot them in that way so that in the x-axis I would ...

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

### 0

Question

fminsearch with if statement
Hello all, I need to optimise two parameters by minimising by objective function. I've got an equation that has got two...

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

### 2

Question

if statement gives wrong results or does not work?
Hello, I've got the following if statement within a for loop. In the beggining, i thought it's quite straight forward. I'v...

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

### 1

Question

Reading multiple netcdf files and then produce a single Matlab matrix
Hello, I've got various netcdf file, in total 1000. In order to make things easier, I'm working with 3 of them at the momen...

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

### 0

Question

Delete rows in a matrix that contain ONLY a negative number
Hello I've got a really large matrix (say 2000 x 3000) and I want to delete the rows that contain ONLY the negative number -9...

ungefär 10 år ago | 4 answers | 1

### 4

Thanks everyone for the replies. I've got now matlab R2012a, I tried to work with the 'matfile' command, but it is not helpfu...

mer än 10 år ago | 0

Question

I need to load a 14.6 GB .mat file. However, the maximum possible array that Matlab can produce is 13.8 GB. Also, the total m...

mer än 10 år ago | 4 answers | 1

### 4

Question

how to amend an existing text file in a certain line and create new ones
Hello all I've got a text file and I need to change only one parameter of it many times (in a for loop). Until now, I've l...

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

### 1

change values in a text file, save it and run it with an executable
My text file looks like: comments....... comments....... 5, 5, 5, 5, ! parameter A That line (with the parameter A) ...

mer än 11 år ago | 0

Question

change the resolution of time series from hourly to 30min
Hello all! I've got some hourly data and I want to transpose it to 30min data. For example for the variable 1, I've got th...

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