Question

Using nearest functiont?

I have this huge matrix 500 by 500 I want to use nearest to find the 25 values that are nearest to X node I did this but I...

3 mois ago | 0 answers | 0

Question

How can I generate reciprocal of a matrix

I have big matrix A 500 by 500 and I want to generate reciprocal of matrix A what caluclation shuould I do or is there a funct...

3 mois ago | 2 answers | 0

Question

How top stop for loop if value is reached

Z is 2000 by 2000 matrix filled with values I have this for loop I want it to stop when there is no change in the matrix X ...

3 mois ago | 1 answer | 0

Question

how can I plot numbers and string in x axis

the reason I want to plot this is I want it to show me the numbers that are the furtherst from zero and closer to -1 or 1 and ...

3 mois ago | 0 answers | 0

Question

How can I represent the mean in figure

basically I have this code to de center the data by shifting it which do the following find the mean of each vector and su...

3 mois ago | 2 answers | 0

Question

how can I write two matrix into the same csv file

I'm trying to write two matrix into csv file using writematrix I tried to speart them with line as divider in the file but I cou...

4 mois ago | 1 answer | 0

Question

What is the best way to save data into a txt file

I have these data in a matrix and I want to save them into a txt file but I got diffrenet values than what in my matrix it was...

4 mois ago | 1 answer | 0

Question

Find values of row in matrix

so I have matrix and index value I want to get all the values in the row I tried Find & ismember but I didn't get all the values...

presque 4 ans ago | 1 answer | 0

Question

How to plot data against samples

let say I have sample 1000 and myData = rand(1,samples) how can _I plot myData_ *against* _samples_ do I tried figure ...

presque 4 ans ago | 1 answer | 0

Question

what difference does it make if we use rand and randn

I feel like these are basics things I need to understand before getting more into matlab 1.using matlab I used rand to generat...

presque 4 ans ago | 2 answers | 1

Question

Matlab accessing global variable from another m file?

so let say I have two files fileA.m & fileB.m in *fileA.m* I have this code function fileA() global dataX; dat...

presque 4 ans ago | 1 answer | 0