Community Profile

# Syed

9 total contributions since 2013

View details...

Contributions in
View by

Question

Returning index values (elements) of a randomly generated matrix (using ceil command) in Matlab
Hi I have a matrix/vector that has 100 randomly generated values of 0 or 1 as: matrix_nodes = ceil( rand(1,number_nodes)...

6 years ago | 1 answer | 0

### 1

Question

How to: For loop and matrix indexing in matlab?
I = 5; % e.g number of nodes for i =1:I initial_matrix = [0]; % an initial matrix will be generated for each node...

6 years ago | 1 answer | 0

### 1

Question

Declaring a global variable to be used across functions and/or scripts in MATLAB
Hi I've declared a global variables I in a script file named "xyz.m" global I; T_P = ones(1,I); which will call ...

6 years ago | 1 answer | 1

### 1

Question

How to call a function in an m file in a function in another m file in MATLAB
Hi, I have two functions in separate m files in the same directory given as: 1st function: function [P] = Calculate_T...

6 years ago | 1 answer | 0

### 1

Question

Combining matrices of different sizes
Hi How can i combine two matrices of different sizes? e.g, x = [1 2 3 4;5 6 7 8;9 10 11 12;13 14 15 16]; y = [1 2 3;...

7 years ago | 2 answers | 1

### 2

Question

random integer between 0 and 15 with equal probability
Hi, I am trying to generate a random integer between 0 and 15. I have written the following code: b=0; B=15; B = b ...

7 years ago | 3 answers | 0

### 3

Question

MATLAB command for Union of an arbitrary collection of sets
Hi, If there is an arbitrary collection of sets (denoted by a large U in mathematics), where each arbitrary set has some limi...

7 years ago | 1 answer | 0

### 1

Question

Matlab command for the following symbol: ∏ (Capital Pi / product of a sequence of terms)
Hi I have an equation that i want to implement in Matlab and it has the following symbol ∏ (used to denote Capital Pi or the ...

7 years ago | 2 answers | 0