Question

how do I create a function

I have the code below to plot the kernel distribution of the data x1, x2,x3 where those x-s are vectors. But instead of changing...

5 months ago | 1 answer | 0

Question

How to create a plot of the spread of the data

How can I create e distribution of the spread for the data below. I want to have in the same figure 5 distributions respresentin...

7 months ago | 1 answer | 0

Question

How can I create binEdges?

I have the Data below and I want to create bins that vary from the lowest to the highest value of the Data(:,2) and I am using ...

8 months ago | 1 answer | 0

Question

Nonlinear data-fitting

I have the data below, where y=variables(:,2), x=variables(:,1) and t=length(x). Do you have any idea how to get e better fitt...

9 months ago | 2 answers | 0

Question

how to plot to get four plots of descriptive statistics in one figure

I have attached the descriptive statistics of 4 different zones below. Can you help me how to get the four plots in one figure?...

9 months ago | 2 answers | 0

Question

How to fix the code

I have the code below but I am geting an error:Index exceeds the number of array elements (1). N=length(DATA(:,1)) for i=1:N...

11 months ago | 1 answer | 0

Question

how to create a structure?

I have a data set (DATA) that contains 100 stations with daily prices and demand. Using this code I can have 100 stations wit...

12 months ago | 1 answer | 0

Question

how to find the line number of a point in a vector

I have a vector i=[0 0 1 1 1 1 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0]. What can I use to find in which line number st...

1 year ago | 2 answers | 0

Question

how to create an index that keep tracking the hours in the data

Is anyone helping me with a simple code ??? In the code below I want to find the peak load and average peak price in peak hour...

1 year ago | 1 answer | 0

Question

How to create a script in Matlab

I have the following codes: I want to bin the price data in 4 bins per month and to calculate the mean and std of demand that be...

1 year ago | 1 answer | 0

Question

Dimensions of arrays being concatenated are not consistent.

I want to bin the price values in 5 bins and for each bin to group the demand values AND then calculate the mean and the stan...

1 year ago | 1 answer | 0

Question

How I can substract vectors with different length?

If d is a vector containg the data for each day of march for 13 years. So, d is a vector with 403 values. Then mu and sd are th...

1 year ago | 1 answer | 0

Question

How to pick the right month?

The data file covered 13 years from 2003-2016. But in the data there is no date just the values of prices and demand. So, can ...

1 year ago | 1 answer | 0

Question

What does ''Error using horzcat Dimensions of arrays being concatenated are not consistent'' means in the problem below?

y=1:4738; lag1=y(6:end-1); lag2=y(5:end-2); M = [lag1, lag2,ones(size(y))]; b = M\y

1 year ago | 1 answer | 0

Question

How can I bin Data

My problem is the following: How can I bin the data in this case: I have a matrix with column 1 x with 90 values of price and ...

1 year ago | 2 answers | 0