Domanda

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]; ...

oltre 6 anni fa | 2 risposte | 0

Domanda

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...

oltre 6 anni fa | 1 risposta | 0

Domanda

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...

oltre 6 anni fa | 1 risposta | 0

Domanda

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 ...

quasi 7 anni fa | 1 risposta | 0

Domanda

dlmwrite/dlmread function help ?

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

quasi 7 anni fa | 1 risposta | 0

Domanda

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; ...

quasi 7 anni fa | 2 risposte | 0

Domanda

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...

quasi 7 anni fa | 4 risposte | 0

Domanda

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...

quasi 7 anni fa | 1 risposta | 0

Domanda

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 ...

circa 7 anni fa | 2 risposte | 0

Domanda

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); ...

circa 7 anni fa | 4 risposte | 1

Domanda

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 (...

circa 7 anni fa | 2 risposte | 0

Domanda

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...

circa 7 anni fa | 1 risposta | 0

Domanda

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...

circa 7 anni fa | 2 risposte | 0

Domanda

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 ]; ...

circa 7 anni fa | 1 risposta | 0