Question

i wan to generate the random number between two number with condition

i have this kind of code:- mini=[2 0.2]; maxi=[20 10]; x=zeros(50,2); for i= 1:var x(:,i)=mini(i)+(maxi(i)-mini(i))*rand(50,1...

7 months ago | 1 answer | 0

Question

how to call the vector from the work space

suppose, data = [15 2 7 16 16]; and there are 16 different files in the workspace how to call it according to the 'data' vector ...

1 year ago | 1 answer | 0

Question

how legend update with variable

t=linspace(0.1,1,10) legend ('0.1','0.2','0.3',......upto '1') how legend update with variable 't' with there values on graph

1 year ago | 0 answers | 0

Question

i have 16 different types of files and i have to take the files in the bunch of 5 from the 16 files, how i put permutation and combination to get 5 files from the 16 files each time differently?

For Example 12134,11111,12111,

1 year ago | 1 answer | 0

Question

how i can store array of string for every loop

suppose i have a file 'M1.csv','M2.csv','M3.csv','M4.csv', how can i store it in the array and call them on the basis of requir...

1 year ago | 1 answer | 0

Question

suppose i have a vector 'bw' if in there value '0' exist than total value of bw=0 is estimated.

bw=[120 1322 5542 5653 0 0 0 45451]; than bw=0 because zero exist in vector....if bw=[121 5454 24 54 4 5454 545 4654]; than bw...

2 years ago | 1 answer | 0

Question

i want to generate a vector of (1,10) size and value is in between 1 to 4

hh=[4 4 4 3 3 3 3 2 2 1]; like this

2 years ago | 1 answer | 0

Question

how we can store each and every value in nested for loop.

d=linspace(2,4,3); for t=1:length(d) c(t)=d(t)^2; PL=linspace(0.8,1,3); for q=1:length(PL) c1...

2 years ago | 2 answers | 0

Question

how to find the bottom peaks in the graph?

how to find decreasing order of peaks in graphs, so that how much graphs goes deeper at higher frequencies (plz refer image.).i ...

2 years ago | 3 answers | 0

Question

Suppose I have three vector x1,x2 and Y. Iam using optimization algorithm, I want maximum value of Y by using C=max(Y) I can extract the value and the value of x1 and x2 which are giving max Y value accordingly extracted, but I need the min value of

My algorithm concentrate only on max Value of Y not minimum value of X=x1+x2. x1= [ 2 5 6 7 8 3], x2= [ 3 5...

2 years ago | 1 answer | 0

Question

i have 16 different types of files and i have to take the files in the bunch of 2 from the 16 files, how i put permutation and combination to get 2 files from the 16 files each time differently?

please keep in mind 1 and 2 is different combination and 2 and 1 is different combination.

2 years ago | 1 answer | 0

Question

i have variables 'Ereal2',Ereal3,Ereal4,Ereal5.....so on.....how to call these variable in a single loop one by one.

These variables are vector in form

2 years ago | 1 answer | 0

Question

how to get the all possible combination between two range of numbers

every time this code iterate random number between 1 to 4. for 1st iteration c=2 and g=2. for second iteration c=1 and g=2; i ne...

2 years ago | 1 answer | 0

Question

Is their any toolbox in matlab for finite element analysis

i want to find the material properties using FEM in electromagnetics. plz also suggest guide to design FEM

2 years ago | 2 answers | 0

Question

which module of matlab is helpful for doing curve fitting using a equation

i want to do curve fitting using a equation which command i use....and i also have lower and upper bounds of parameters

2 years ago | 1 answer | 0

Question

t1 range is 0.1 to 2 and t2 range is 0.1 to 2.....and t1+t2 should not be greater than 2

t1 range is 0.1 to 2 and t2 range is 0.1 to 2.....and t1+t2 should not be greater than 2

3 years ago | 2 answers | 0

Question

how to generate random number between 10^-6 to 10^-50

i use A + (B-A)*rand(1,N) this but it doesn't help me in my matter...every time it generate number near to the minimum value it ...

3 years ago | 1 answer | 0