Question

move a row from a cell to another cell

I had a cell array Q like this Q=cell(5,1); Q{1,:}=[1 2 3 4;11 22 33 4;11 2 33 4]; Q{2,:}=[1 11 11 2;22 2 32 33]; ...

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

Question

nested for loop with different variable name

S is cell array of size 994*1 and each cell size in it is 24*24, price3(size 1*24), Bita(size 1*24), CONS_T3(size 1*24), I want...

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

Question

matrix as desired data using for loop

suppose I had following matrix A A(1,:)=[10 10 0.2 0 0]; A(2,:)=[10 10 10 0.3 0]; A(3,:)=[10 0.5 0 0 0]; Now I want a cell...

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

Question

create a specific matrix data ?

I have a matrix N=[2;3;4;2;4;1;4;3;2;1] (10*1 size) then from this i want to create a matrix like this that for i=1:10 ...

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

Question

dlmwrite/dlmread function help ?

I had a matrix A = [data1 data2 data3]; B = [data4 data5]; data1,data2,....data5 are calculated or exported from exc...

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

Question

find a rows in matrix and its position in that matrix ?

datasheet(48*6)size %I had a matrix of size(48*6) and then ii = randperm(size(datasheet,1)); k = ones(24,1)*2; ...

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

Question

selection of data from matrix

I have a dataset lets say a matrix of 100 rows and 5 columns, each row represents a dataset.Now I want to select 5 any rows(data...

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

Question

probability data distribution randomly or with some probability

I have 10,000 Electric vehicles(EVs) now I want to distribute them in 24hours(day) one-hour interval, this shows the arrival tim...

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

Question

how to create a function ?

I want to create a function which gives following information like fi = @(a,b) ([a:data_len 1:b]); if x<y A= x:y ...

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

Question

Is there the more elegant way to do this?

I have 10 matrices(10*24 size each) named A1,A2,,,,A10.Now i want this E1=sum(A1); E2=sum(A2); till E10=sum(A10); ...

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

Question

create a specific vector from excel file

I want create a zero vector (1*24) and according to the appliances like for 'lights' (in Excel file ) create A1 zero vector (...

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

Question

create different vector using for loop

I have three users named A1, A2 and A3 and each user has three appliances like A11 represent the A1's 1st appliance and A12, A13...

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

Question

read specific data from excel and create a vector ?

I have attached excel file and to create a row vector 1*24 like A1=[0 0 0 0 2.2 2.2 2.2 2.2 2.2 2.2 2.2 2.2 2.2 2.2 2.2...

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

Question

how to read excel file and create a row vector ?

how can we create a row vector from excel file containing zeros and some same digits like A=[ 0 0 0 0 4 4 4 4 4 4 0 0 0 0 0 ]; ...

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