Answered

Meaning of angle wrapping

function does exactly what you think it does, it takes the angle with modulo 2*pi (with a special case for the boundary). You ca...

Meaning of angle wrapping

function does exactly what you think it does, it takes the angle with modulo 2*pi (with a special case for the boundary). You ca...

2 years ago | 1

Answered

Putting columns from an array into evenly spaced columns in excel

Hi You could always write it in a loop, e.g. using the char-int conversion. As an alternative: instead of writing a matrix...

Putting columns from an array into evenly spaced columns in excel

Hi You could always write it in a loop, e.g. using the char-int conversion. As an alternative: instead of writing a matrix...

2 years ago | 0

| accepted

Answered

find combination of labels

Hi Your procedure has two steps: 1. find all labels for a current position 2. find all possible combinations This is...

find combination of labels

Hi Your procedure has two steps: 1. find all labels for a current position 2. find all possible combinations This is...

2 years ago | 1

| accepted

Answered

drawing a quiver for a list of 1D arrows

Hi What do you mean by "velocity values in 1D direction"? Your velocity has 3 components. Regardless, you can plot any of the...

drawing a quiver for a list of 1D arrows

Hi What do you mean by "velocity values in 1D direction"? Your velocity has 3 components. Regardless, you can plot any of the...

2 years ago | 0

Answered

How do i transfer big symbolic equations into Simulink

What do you mean by "matlab function does not support symbols"? Maybe I misunderstood your problem, but there is a function call...

How do i transfer big symbolic equations into Simulink

What do you mean by "matlab function does not support symbols"? Maybe I misunderstood your problem, but there is a function call...

2 years ago | 0

| accepted

Answered

How to go through folder in a given folder?

Hi You can use *dir* to list all the files and folders on a particular folderpath, and then extract only the folders. e.g....

How to go through folder in a given folder?

Hi You can use *dir* to list all the files and folders on a particular folderpath, and then extract only the folders. e.g....

2 years ago | 0

Answered

Plotting in a 3D space from different perspectives

You can use the *view* function and e.g. pass it the viewing angles. See <http://de.mathworks.com/matlabcentral/answers/272639-h...

Plotting in a 3D space from different perspectives

You can use the *view* function and e.g. pass it the viewing angles. See <http://de.mathworks.com/matlabcentral/answers/272639-h...

2 years ago | 0

Answered

matlab code to transform linear systems to strictly diagonally dominant matrix

Without giving away the whole solution, one way would be to diagonalize your linear system. What you need to do is thus to find ...

matlab code to transform linear systems to strictly diagonally dominant matrix

Without giving away the whole solution, one way would be to diagonalize your linear system. What you need to do is thus to find ...

2 years ago | 0

Answered

Do a zoom in a FFT trasform

You can specify the portion of the plot displayed using *xlim*, *ylim*, or *axis* (for both x and y). This will not change what ...

Do a zoom in a FFT trasform

You can specify the portion of the plot displayed using *xlim*, *ylim*, or *axis* (for both x and y). This will not change what ...

2 years ago | 0

| accepted

Answered

How can I calculate running mean over 40 samples in Simulink?

What you are describing is known as a *moving average filter*. If you want to do this in simulink (i.e. while running the si...

How can I calculate running mean over 40 samples in Simulink?

What you are describing is known as a *moving average filter*. If you want to do this in simulink (i.e. while running the si...

2 years ago | 0

| accepted

Answered

Subscript indices error when not running a loop

You are missing a * (or some other operation) after *Rg* in the second to last row (where the error occurs). It should be W...

Subscript indices error when not running a loop

You are missing a * (or some other operation) after *Rg* in the second to last row (where the error occurs). It should be W...

2 years ago | 0

| accepted

Answered

how to use fit in logY ?

A line which is straight in a linear plot will always be curved in a log plot...? If you want it to be straight in a log10 plot,...

how to use fit in logY ?

A line which is straight in a linear plot will always be curved in a log plot...? If you want it to be straight in a log10 plot,...

2 years ago | 0

| accepted

Answered

How to get rid of lsline in regression plot?

N = 15; x = linspace(0,5,N)'; y = 1.3*x + 0.5*randn(N,1); % 0. plot data and lsline plot(x,y,'o') lsline ...

How to get rid of lsline in regression plot?

N = 15; x = linspace(0,5,N)'; y = 1.3*x + 0.5*randn(N,1); % 0. plot data and lsline plot(x,y,'o') lsline ...

2 years ago | 1

| accepted

Answered

Invalid syntax at <STRING>. Possibly a }, ), or ] is missing.

Hi I am confused on what you expect your function to do? That goes for pretty much all your function calls. Let's have a l...

Invalid syntax at <STRING>. Possibly a }, ), or ] is missing.

Hi I am confused on what you expect your function to do? That goes for pretty much all your function calls. Let's have a l...

2 years ago | 0

Answered

Algebric Loop with FIR Filter in Simulink

By feedforward, do you mean a feedthrough in your filter? Two possibilities I can think of: 1. Incorporate your feedforward ...

Algebric Loop with FIR Filter in Simulink

By feedforward, do you mean a feedthrough in your filter? Two possibilities I can think of: 1. Incorporate your feedforward ...

2 years ago | 0

Answered

how to rotate a resistor in Simulink ?

You can rotate elements with "ctrl+R" or "ctrl+shift+R" (CW vs CCW), but 45° rotations are not possible afaik.

how to rotate a resistor in Simulink ?

You can rotate elements with "ctrl+R" or "ctrl+shift+R" (CW vs CCW), but 45° rotations are not possible afaik.

2 years ago | 1

Answered

Finding largest values in matrix

A = randn(90); Nmax = 10; % get Nmax biggest entries [ Avec, Ind ] = sort(A(:),1,'descend'); max_values = Avec(1:...

Finding largest values in matrix

A = randn(90); Nmax = 10; % get Nmax biggest entries [ Avec, Ind ] = sort(A(:),1,'descend'); max_values = Avec(1:...

2 years ago | 1

| accepted

Answered

Alternative function or tool instead of plot or line ?

Hi I think you misunderstood the plot function. The first argument are *all the x values*, and the second argument are *all t...

Alternative function or tool instead of plot or line ?

Hi I think you misunderstood the plot function. The first argument are *all the x values*, and the second argument are *all t...

2 years ago | 1

| accepted

Answered

Making a Function file which calls another function file

I am not sure if this is want you are asking, but you can pass a function handle as input. A mini example would be function...

Making a Function file which calls another function file

I am not sure if this is want you are asking, but you can pass a function handle as input. A mini example would be function...

2 years ago | 0

| accepted

Answered

Storing data from a for loop in a matrix

Hi There is a search feature in the forum, you will find hundreds of examples for this. But your problem is that you are ...

Storing data from a for loop in a matrix

Hi There is a search feature in the forum, you will find hundreds of examples for this. But your problem is that you are ...

2 years ago | 1

| accepted

Answered

How to simulate a transfer function matrix of closed loop MIMO system?

*Careful*!! *sys_orig_tf'* not only transposes your system, but takes the complex conjugate of it! This most likely complete...

How to simulate a transfer function matrix of closed loop MIMO system?

*Careful*!! *sys_orig_tf'* not only transposes your system, but takes the complex conjugate of it! This most likely complete...

2 years ago | 1

| accepted

Answered

how to plot a complex function in simulink ?

You could plot the real and imaginary part separately using the *scope* block, or then plot them in the real-imaginary plane usi...

how to plot a complex function in simulink ?

You could plot the real and imaginary part separately using the *scope* block, or then plot them in the real-imaginary plane usi...

2 years ago | 0

| accepted

Answered

how to apply windowing in matlab in real time?

Depends a bit what kind of filter you want. Butterworth or moving average filters are quite common because they are the simplest...

how to apply windowing in matlab in real time?

Depends a bit what kind of filter you want. Butterworth or moving average filters are quite common because they are the simplest...

2 years ago | 0

Answered

How to find 6 clusters

And each cluster is a repetition of the exact same number? Can the same number appear twice? If not, you could do something ...

How to find 6 clusters

And each cluster is a repetition of the exact same number? Can the same number appear twice? If not, you could do something ...

2 years ago | 0

Question

Efficiently combine anonymous functions?

Hi I have an algorithm which has several anonymous functions passed as parameters which are then combined depending on flags....

2 years ago | 2 answers | 0

Answered

how to create FFT diagramm from acceleration measurements? (using xlsread)

xlsread reads a file, it has nothing to do with your diagram. Since you have a csv file, why not use *csvread*? All I see ...

how to create FFT diagramm from acceleration measurements? (using xlsread)

xlsread reads a file, it has nothing to do with your diagram. Since you have a csv file, why not use *csvread*? All I see ...

2 years ago | 0

Answered

is there SVM CLASSIFY on matlab 2015 or we should download it and install it on matlab?

It's all here: <http://de.mathworks.com/help/releases/R2015a/stats/svmclassify.html?searchHighlight=svmclassify SVM Classify Do...

is there SVM CLASSIFY on matlab 2015 or we should download it and install it on matlab?

It's all here: <http://de.mathworks.com/help/releases/R2015a/stats/svmclassify.html?searchHighlight=svmclassify SVM Classify Do...

2 years ago | 0

| accepted

Answered

How do I process big datasets ??

Hi Do you now have each day in a separate file, or everything in one file? Personally, if you want to evaluate different s...

How do I process big datasets ??

Hi Do you now have each day in a separate file, or everything in one file? Personally, if you want to evaluate different s...

2 years ago | 0

| accepted

Answered

How can I make legend by colors?

Do I understand correctly that you have a lot of lines, but only want to have 4 legend entries which need to be of different col...

How can I make legend by colors?

Do I understand correctly that you have a lot of lines, but only want to have 4 legend entries which need to be of different col...

2 years ago | 1

| accepted