Question

How to plot a boxplot with same label?

I am trying to have a boxplot with similar label, but matlab boxplot does not take it. boxplot(randn(4),{'a','b','a','b'}) T...

1 month ago | 0 answers | 0

Question

How to label a plot in Matlab with combine label?

It is hard to explaine here. For example "peaks" is located second line and combine with "a" and "b".

1 month ago | 2 answers | 1

Question

How to change the colour or text or delete some text of the default graph in findpeaks function?

How to change the colour or text or delete some text of the default graph in findpeaks function? In this code below from matla...

2 months ago | 1 answer | 0

Question

How to plot 2 different colour using RBG setting

plot(x,y,'color',[0,0.5,0], x,y2, 'color',[0.5,0,0]) It said Error using plot Vectors must be the same length. If I am usin...

3 months ago | 1 answer | 0

Question

How to plot 3D line graph?

How to plot a 3D graph below. I had tried "bar3", but it shown all the line up as bar graph. I want the line shown below. ...

10 months ago | 2 answers | 0

Question

Amplitude Modulation Synthesis function in matlab?

For Amplitude Modulation, it suppose to have carrier amplitude and modulated amplitude. however, the matlab built in function...

10 months ago | 0 answers | 0

Question

How to get Matlab read my char file in excel?

I have a list of char in my excel file. I want to import to my matlab like below: I had tried below y=csvread('test10...

12 months ago | 1 answer | 0

Question

How to get Matlab read my char file in excel?

Let say I have a csv file and have a list of char inside. I want to read it as: x=dlmread('test10042019_char.csv'); y...

12 months ago | 1 answer | 0

Question

how to create a char

I am trying to follow: https://uk.mathworks.com/help/stats/boxplot.html One of the code, said that: load carsmall How can ...

12 months ago | 1 answer | 0

Question

How to turn a discrete to a continuous using t

I want to turn a discrete value to a continous using a t as time. (I also not sure what i asking is correct) Basically, I ...

12 months ago | 0 answers | 0

Question

What does i mean as example: 1.2428 - 0.0003i

What is the meaning of the result i get when i run matlab code: 1.2428 - 0.0003i 1.2320 - 0.0003i 1.2250 - 0.0002i...

1 year ago | 2 answers | 0

Answered

what does "X = X./max(max(X))" means?>

https://slideplayer.com/slide/14985720/ source

what does "X = X./max(max(X))" means?>

https://slideplayer.com/slide/14985720/ source

1 year ago | 0

Question

what does "X = X./max(max(X))" means?>

>> X=[1,2,3,4] X = 1 2 3 4 >> X = X./max(max(X)); >> X X = 0.2500 0.5000 0.7500 ...

1 year ago | 3 answers | 0

Question

LDA for 2 classes only, why have 3 classes?

Hi, I am trying to use the original code Link here LDA link I found strange is the dataset have 3 classes, but the plotted ...

1 year ago | 0 answers | 0

Question

What is the meaning of vec2ind "Convert vectors to indices"?

vec2ind vec = [0 0 1 0; 1 0 0 0; 0 1 0 0]' vec = 0 1 0 0 0 1 1 0 0 0 0 ...

1 year ago | 0 answers | 0

Answered

Reducing dimensionality of features with PCA

Is there any setting input arguement of coeff = pca(X) coeff = pca(X,Name,Value) [coeff,score,latent] = pca(___) [coeff,sco...

Reducing dimensionality of features with PCA

Is there any setting input arguement of coeff = pca(X) coeff = pca(X,Name,Value) [coeff,score,latent] = pca(___) [coeff,sco...

1 year ago | 1

Answered

PCA to reduce dimensionality of feature vector

I just want to have a simple PCA to reduce my dimensionality of let say 400 * 5000 to 400 * 4 meaning reduce from 5000 to 4. ...

PCA to reduce dimensionality of feature vector

I just want to have a simple PCA to reduce my dimensionality of let say 400 * 5000 to 400 * 4 meaning reduce from 5000 to 4. ...

1 year ago | 0

Question

PCA in Matlab reduce dimensionality

I just want to have a simple PCA to reduce my dimensionality of let say 400 * 5000 to 400 * 4 meaning reduce from 5000 to 4. ...

1 year ago | 1 answer | 0

Answered

How "hold on" function works?

Is "hold on" function only work in plotting? csvwrite('1test.csv',a, 0,1); hold on; csvwrite('1test.csv',b, 0,2); It seemed ...

How "hold on" function works?

Is "hold on" function only work in plotting? csvwrite('1test.csv',a, 0,1); hold on; csvwrite('1test.csv',b, 0,2); It seemed ...

1 year ago | 0

Question

How to write multiple input into one csv file

Let say I have a=1; b=2; c=3; d=4; I want to put this output value in matlab to a csv file in the order below. I can use...

1 year ago | 2 answers | 0

Question

How to read only 1 value in row 2, column 1 ?

I just want to read one value in my csv file. For example: filename = 'csvlist.dat'; M = csvread(filename) result is M = ...

1 year ago | 2 answers | 0

Question

Why "File not found"?

I am trying to follow the example of csvread here csvread filename = 'csvlist.dat'; M = csvread(filename) I have csvlist.dat...

1 year ago | 0 answers | 0

Question

How to find a slope of signal if we do not know the value of x1, x2, y1, y2

How can we find the slope of a signal if we do not know the value of x1, x2, y1, y2 which we cannot use Slope = (y2 - y1) / (...

1 year ago | 1 answer | 0

Question

How to plot a specific value in Y-axis?

I want to plot a specific range of Y-axis and not the entire Y-axis. For example: load sunspot.dat year = sunspot(:,1); av...

1 year ago | 1 answer | 0

Question

How to find the value of "Border" in findpeaks built-in function?

Example using this link findpeaks function example link x = linspace(0,1,1000); Pos = [1 2 3 5 7 8]/10; Hgt = [4 4 2 2...

1 year ago | 0 answers | 0

Question

How to cut out specific segment from findpeaks function?

Hi All, I am trying to figure out how to cut out the specific segment of the signal where I draw the border using findpeaks fun...

1 year ago | 3 answers | 0

Question

What is the meaning of "width" and "prominences" in findpeaks

It said that: [pks,locs,w,p] = findpeaks(data) additionally returns the widths of the peaks as the vector w and the prominences...

1 year ago | 1 answer | 0

Answered

how to use helperGaitPlot?

It still not working even with Matlab version 2018b. It said: Undefined function 'helperGaitPlot' for input arguments of typ...

how to use helperGaitPlot?

It still not working even with Matlab version 2018b. It said: Undefined function 'helperGaitPlot' for input arguments of typ...

1 year ago | 0

Question

how to use helperGaitPlot?

How to use helperGaitPlot helperGaitPlot('als1m'); xlim([0 30]) when i run, it said: >> helperGaitPlot('als1m'); xlim([0 30...

1 year ago | 3 answers | 0