Community Profile

# Mark S

Last seen: 3 månader ago Active since 2020

#### Content Feed

View by

Question

Cut measured data, time series shifted
Hello, attached I have some measured data. I want now cut the data until 0,6 seconds. So I want that the plot is beginning at 0...

### 1

Question

Matlab plot .eps file position legend is not same as in matlab plot
Hello, I want to save my plot as a .eps file. But when I open then the .eps file the legend is always inside the plot and not...

### 0

Question

Draw from cartesian xy-data a spiral
Hello, i have cartesian data in x and y direction of a spiral path movement of a robot over time. So I want now plot this spira...

### 1

Question

Hello, I am trying to use udpport for receiving data with matlab. Therefore I want to test it. Can I test it if my code works? ...

### 0

Question

Matlab create function - Invalid expression
Hello, can someone help me to insert a function in Matlab correctly. I don't know why it doesn't work for me. I would like...

### 1

Question

Calculationg with quternions Matlab function did not work
Hello, I am having some trouble with my function. I would transform a coordinate vector using Unit Quaternions. I have wri...

### 1

Question

Compound quaternion Matlab -error
Hi, I have written a Matlab code where i can compound two relative poses by Translation-Vecot-Unit-Quaternion-Pair But I get an...

### 1

Question

3-dimensional orthonormal rotation symbolical
I want to create symbolical 3-dimensional orthonormal rotation matrices for a pure rotation of phi_x, phi_y and phi_z. But my ...

### 1

Question

Zgrid find desired region, what is the radius?
Hi, when I type this in matlab i get the zgrid plot. zgrid(0.5,1) So we at school have now calculatet the radius with: r=e...

### 0

Question

Calculate steady state error for unit step and ramp input for Zero order hold
Hi, how can I calculate the state error for unit step and ramp input for the sys2? sys1=tf(1,[1 1 0]) sys2=c2d(sys1,0.1) I...

### 1

Question

Determine the output of the given Block diagram
Hi, I have calculated by hand the output of the given block diagram Y(z), in Z-Domain. T=1 sec. I get as result: Y(z)=4z/[3(...

### 1

Question

Is it possible to calculate time constant and DC gain for RC circuit
Hi, is it possible to to calculate time constant and DC gain for a given RC circuit? I have here this matlab code and I wa...

ungefär ett år ago | 1 answer | 0

### 1

Question

Scatter-plot of data in which the cluster membership is coded by colors.
Hello, I have created a dendrogram of my given data. NumCluster = 1566; dist = pdist(alldata, 'euclidean'); GroupsMatrix = li...

ungefär ett år ago | 1 answer | 0

### 1

Question

Vary k-nearest neighbor classification
Hello, I have written this little model for k-nearest neighbor classification: knn_modell = fitcknn(cars, origin, 'NumNeighbors...

ungefär ett år ago | 1 answer | 0

### 1

Is it possible to evaluate the differential equation from a simulink model?
Ah ok. Then the Simulink model has been build from two differential equations. I have understood it now. Thanks for the help.

ungefär ett år ago | 0

Question

Is it possible to evaluate the differential equation from a simulink model?
Hello, I want to find the differential equation from the given simulink model: I am not sure if i can get a differential equ...

ungefär ett år ago | 2 answers | 0

### 2

Simulink build model from differential equation
Can anyone tell me what I am doing wrong here

ungefär ett år ago | 0

Question

Simulink build model from differential equation
Hi, I am very new in simulink. I have build a simulink model from the given equation: Input is the voltage and output should ...

ungefär ett år ago | 2 answers | 0

### 2

Question

Find minimum of single-variable function
Hi, what expression is calculated by the following command in Matlab? Code: fminbnd(@(x) (sin(x).^2-1),0,pi) Minimum of: (...

mer än ett år ago | 1 answer | 0

### 1

Question

Plot transfer function with exponential function
Hi, how can I plot this tf in Matlab: G(s)= 4e^-s/(s^2+4s+4) I have tried this, but I am not sure if this is ok: sys = tf([...

mer än ett år ago | 2 answers | 0

### 2

Question

How can i plot transfer function with step signal input?
Hello, I have this transfer function: sys = tf([2],[1 2]) G(s) And this is my step input signal: R(s)= 2/s How can i com...

mer än ett år ago | 1 answer | 0

### 1

Question

Plot 4 diagrams in one plot
Hi, I want to plot 4 diagrams in one plot. Actual i have two plots with 4 different values: clear ;clc mu=[0 0.1 1 10]; tsp...

mer än ett år ago | 1 answer | 0

### 1

Question

State space models are same?
Hi, if I have two state space models, how can i calculate if these two state space models represent the same plant?

mer än ett år ago | 2 answers | 0

### 2

Question

Damped function second low
Hi, how can I find a second low of a damped function in Matlab? Do i have to use fzero?

mer än ett år ago | 1 answer | 0

### 1

Question

How can I stop ode45
Hi, how can I stop ode45 when the function is on the lowest point: I have tried that. options = odeset('Events', @deep); [...

mer än ett år ago | 1 answer | 0

### 1

Question

Maximum Drawdown calculate and plot as a chart
Hello, i want create a skript which calculate the drawdown of a stock like this: https://twitter.com/charliebilello/status/11261...

ungefär 2 år ago | 0 answers | 0

### 0

Question

Loop and write into a cell
Hello, i wanna accumulate the data in my script with a loop l=[1,2,3,4,5,6,7,8,9,10] S=[42600 35000 91850 20000 41060 30000 63...

mer än 2 år ago | 1 answer | 0

### 1

Question

Error in my function
Hey, i wanna make a time vector of my data. I have written this function: function [ data_out_time ] = create_time( header_out...

mer än 2 år ago | 0 answers | 0

### 0

Question

Plot Data into a Histogramm
Hello, i have written this script: a = exprnd(200, 100, 1); small = find( a < 57 ); a ( small ) = 57; classification = ...

mer än 2 år ago | 1 answer | 0