Question

How to store data whose dimension varies at each steps of run?

I have a program, let say it runs for N times. So say b=1:N. Now at each iteration I get an array A whose size varries in the or...

12 days ago | 1 answer | 0

Answered

Select a random number from a set

rand_Pos = randperm(length(x),1) card = x(rand_Pos)

Select a random number from a set

rand_Pos = randperm(length(x),1) card = x(rand_Pos)

12 days ago | 0

Question

Shorting dissimilar Elements from an Array

Suppose I have an array A of elements from 1 to 20 sequentially. Let B = [10 9 2 4 7 16 17 15 11 13]. I need an array C (Assend...

24 days ago | 1 answer | 0

Question

Converting Cell matrix to a Numeric Matrix

I have a cell matrix as shoown below. B={'2' '3' '5'; '4' '7' '2'; '7' '5' '2'} B = 3×3 cell array {'2'} {'3'} ...

1 month ago | 1 answer | 0

Question

Finding Connected Component in the graph.

I have following two questions. (1) How to find number of connected components in a graph in MATLAB? (2) How to find the numbe...

2 months ago | 1 answer | 0

Question

How to remove redundant elements in a sparse matrix?

I have the following Sparse Matrix E with the following redundant elements i.e (2,1) = (1,2), (5,1) = (1,5), (2,3)=(3,2) and (2,...

2 months ago | 1 answer | 0

Answered

Simple question regarding bar plot with categorical data

I also faced the same issue. There are numerous shortcut techniques available to solve it out. What I used to follow is as below...

Simple question regarding bar plot with categorical data

I also faced the same issue. There are numerous shortcut techniques available to solve it out. What I used to follow is as below...

2 months ago | 0

Question

How to add numeric values to cell array?

names = {'A' 'B' 'C' 'D' 'E'}; val = [0;1.5;0.5;0.5;1.5] I want my output as folows A 0 B 1.5 C 0.5 D 0.5 E 1.5

2 months ago | 2 answers | 0

Question

How to find CUSUM of a single state vector whose observation are comming at different time instant?

I have a vector of final size 1xN i.e X = [x1,x2,.....xn]. Elements of vector are coming each time instant one by one. How to ap...

7 months ago | 1 answer | 0

Answered

Simulink doubt -not have enough information to determine output sizes for this block

Assign these values at the starting of your function x = zeros(3,1); xcap = zeros(3,1); xdot = zeros(3,1);

Simulink doubt -not have enough information to determine output sizes for this block

Assign these values at the starting of your function x = zeros(3,1); xcap = zeros(3,1); xdot = zeros(3,1);

1 year ago | 1