Community Profile

photo

Bashir Yusuf Bichi


Con actividad desde 2017

Followers: 0   Following: 0

Estadísticas

  • Thankful Level 3

Ver insignias

Feeds

Ver por

Pregunta


How to generate a random number that is greater than or equals to a given number
example a=5 y=randi(number)>=a

alrededor de 6 años hace | 1 respuesta | 0

1

respuesta

Respondida
Extracting the first three minimum elements from a vector v and assign them to h then letter remove the elements from vector v and used the index to removed some element in vector w.
v(h)=[]; w(h)=[]; thanks @KSSV, I got it. I don't have to use the while loop.

más de 6 años hace | 0

| aceptada

Pregunta


Extracting the first three minimum elements from a vector v and assign them to h then letter remove the elements from vector v and used the index to removed some element in vector w.
v=[3,6,1,7,9,4]; w=[3,2,7,1,9,5]; [x,y]=sort(v); h=x(1:3); i=1; while i<=numel(v) if v(i)==h(i) % here h wil...

más de 6 años hace | 2 respuestas | 0

2

respuestas

Pregunta


How to pass a variable from one function to another without declaring it as global
Fn1 { a; b; } Fn2 { c=a; }

más de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


if I have a vector of 20 elements, how can I extract the 5 minimum elements in that vector
V=[23,56,12,90,45,21,56,10,70,100,15,...] a=[10,12,15,21,23]

más de 6 años hace | 2 respuestas | 0

2

respuestas

Pregunta


how to combine two different vectors into a cell array
e.g v=[3,6,4...] b=[5,3,1,...] C=cell array containing v and b

más de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to create an array with pair of elements, how can i also use first pair in computation
such as H=[1,4,2] V=[(4,3),(5,1),(7,5)] b=[(4+1),(5+4),(7+2)] c=second pair of V i.e. c=[3,1,7]

más de 6 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Matlab functions/scripts
I have four Matlab functions/scripts and I call all the functions/scripts from one main function, but the results where differen...

más de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How can I extract all values in a row of an array without the its maximum value
ex a= 1 3 6 5 6 7 1 9 5 3 9 10 the extracted row will be 5 3 9

más de 6 años hace | 2 respuestas | 0

2

respuestas

Pregunta


Am trying to reduce a vector by summing some elements in the vector to form another vecter
example if v=[40,34,10,8,6,2] then the new vector will make 40 to be the reference point. after comparing each element the new ...

más de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How can I find the maximum of a given matrix and then locate the minimum value along the row of the maximum value
e.g a = 4 2 8 5 9 1 3 10 17 maximum will be 17 for the entire array and 3 will be the min value ...

más de 6 años hace | 2 respuestas | 0

2

respuestas

Pregunta


how to find min or max value in each row of a matrix and its index, if a matrix is 3x2 it will find the min in first row
R= [27 25 21; 35 38 37; 42 47 49]; 1st min value will be 21

más de 6 años hace | 2 respuestas | 1

2

respuestas

Pregunta


how can I add a value to a particular cell in an array.
if [3,2,4,5;3,2,6,4;2,5,8,5] is array then we add we add 2 to the second row to become [2,3,2,5;3, *4*,6,4;2,5,8,5]

más de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to obtain a set of matrix from another matrix by adding the previous row value along the column to the next row on the same column
Example a= 2,4;3,4;2 1 the new matrix will be b= 2,4;3+2,4+4;2+3+2,1+4+4 along the colums

más de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


how can I find the maximum value in each row of a matrix and sum along the column then assign the values to another matrix
example 2 3 3 4 5 3 1 2 3 2.5 the answer will be a vector (5+3, 3+4+2) the code may be incorrect but, I onl...

más de 6 años hace | 1 respuesta | 0

1

respuesta