Community Profile

Contact

Top 5% contributor

For ex;I have an array A=[1:4] and B=[12:19:2:20].If I sort B in descending order B=[20 19 12 2].I want the corresponding positi...

1 Answers

2

Asked 4 years ago

thanks a lot..I did not know that ..

0

Answered 4 years ago

I have an array of numbers stored in k ,say k=1:4.I want the list of all permutations from the array (i.e) 1234,1243,and so on....

3 Answers

7077 views

Posted 5 years ago

I have an array A=1,2,3 and array B=1,2,3,4 I want to combine both A and B in a single matrix C such that C=[1 2 3 0 A dummy zer...

6868 views

Posted 4 years ago

How do I get the weights and nodes of a Gauss Hermite Quadrature Equation?I found Matlab files that integrate using Gauss Hermit...

5637 views

I am trying to fit a cubic monotonic polymonial between say certain data values of variable G and corresponding variables for B...

5413 views

Is there an easy way to get central n numbers in an array?for eg x=[ 1 2 3 4 5] I want to extract the central 3 numbers (i.e) 2...

I have several arrays of different lengths that need to combined into a single matrix of order n * n where n is the length of th...

consider A=[1 2 3] if i use mean(A(1):A(3)) it gives 2 which is the mean of first element and third element of A. if A=[3 2 ...

2 Answers

Asked 3 years ago

I have an array A=[1 2 3] B=[1 2 5] I want to get the elements that are present only in one of the arrays stored in A and B li...

I need to compare 2 arrays A and B which are unequal in length.So,I need to find the shorter of the 2 arrays and add additional ...

the random variable Y follows some prob distribution and I am trying to fit the polynomial with values of the normal distributio...

1446 views

Responded 5 years ago

Hi all,

Steve, I have a file which gives the output Z.I want to conduct the simulations thousand times and store all the 1000 Zs in a fi...

1406 views

I need to run a file thousand times and store the results in another file.How do I achieve that in matlab?

While using fmincon,suppose my linear constraint happens to be like a<0 and not a<=0(lesser than or equal to) how do I incorpora...

1212 views

I am trying to minimise a function f of two variables using fmincon wrt to some constraint.At the same time , I want the functio...

1026 views

How do I get the nodes and weights for a gauss hermite quadrature for 'n' points?There are matlab files that integrate using the...

My script performs a calculation say squaring a number.While I run the script ,it should get input from the user (which is the ...

I have the inputs stored in multiple text files.Each and every text file has a matrix.The matrix from the first file has to be t...

I want to minismise a function f=x^2+y^2 wrt the constraint x^2+y^3=6 and I want f itself to be above 5.How do i incorporate the...

726 views