Respondida
How to plot a step response of symbolic laplace and inverse laplace function
Hi @Ralph Sparrow Here is the MATLAB script: clear all; clc % Define symbolic variables syms s t y(t) Y(s) D1y = diff(...

más de 4 años hace | 0

Respondida
How can I use the array of data into a formula to calculate and get the data.
Hi @Aung Moe Zaw Please check if the following results are expected. function [] = call_spring() t = 0:0.001:5; y0 = [0, 0...

más de 4 años hace | 1

| aceptada

Respondida
Calculate mean value between 2 years
@Anh Duong I think the M = mean(A) function will do the job. Give it a try. https://www.mathworks.com/help/matlab/ref/mean.htm...

más de 4 años hace | 0

Respondida
How to input 3^2x . Sqrt(9) =729 the answer is 3
Hi @Muhammad syafikh Mohd umar Unsure of what the 'x' mean in the line. If x means multiplication, then enter this: (3^2)*sqrt...

más de 4 años hace | 0

Respondida
I want to make 4 clusters using k mean clustering and for each of the 4 clusters i want to set centroid initially and then accordingly make the cluster. how can I.
Hi @Maimoona Asad Perhaps you can try the pdist2 method outlined in this link to find the centroids. Hope it helps. https://ww...

más de 4 años hace | 0

Respondida
How to plot two exponential functions on Matlab?
Hi @Amna Habib Try this: x = -10:0.01:12; f = exp(-(((x-2)/3).^2)/2); g = 1-exp(-(((x-2)/3).^2)); plot(x, f, x, g) xlabel(...

más de 4 años hace | 1

Respondida
How to calculate velocity from X and Y positions and time?
Hi @Daniela Pereira First, you need to obtain the distances between each point specified by the coordinates. Then, I think ...

más de 4 años hace | 0

Respondida
Is it possible to plot this graph by applying the laplace function in MATLAB to the equation?
Hi @Harry Louise Plasabas You can plot Fig. 12.8.5 with this: r = 0:0.01:2; I2 = 1./sqrt((r.^2 - 1).^2 + 0.01); plot(r, I2) ...

más de 4 años hace | 1

Respondida
Learning matlab for study purpose and new to MATLAB.
Hi @Shams Ur Rehman These articles may be helpful. csvread reads comma-separated value (CSV) file. https://www.mathworks.com/...

más de 4 años hace | 0

Respondida
Why my ODE is not solving?
Hi @Aung Moe Zaw Because of the sign in this line. (minus) (minus) = plus. It means that energy is continuously injected into t...

más de 4 años hace | 1

| aceptada

Respondida
solve tan(x)+2*x=0
Hi @rakesh kumar I think you are not wrong, but it has infinitely many solutions. The solution v is in radian, but you checked ...

más de 4 años hace | 1

| aceptada

Respondida
Numerical solution for 2nd order ODE using Euler Method
Hi @KG If you show us the Euler method formula, then we don't have to search in Google or Wikipedia. This also ensures that the...

más de 4 años hace | 0

Respondida
How do I solve this differential system by using ode45?
Hi @Gan Huang Since is known, you can make direct substitutions into and . Here is the demo: function Demo_ode45 close all ...

más de 4 años hace | 0

Respondida
How to plot elliptic function (x,y,z) in MATLAB
Hi @Jong Hyun Lee Please check if it looks like this: meshpoints = 41; Lb = 0; % lower bound Ub = 2; % upper bound ...

más de 4 años hace | 0

Respondida
A sinusoid has just been fed into a system.
Hi @Jonathan George This is sort of the "control theorist's way", if you are interested to learn. s = tf('s'); sys = 1/(1 + 0...

más de 4 años hace | 1

Respondida
Ask questions for Matlab PID()
Hi @Chris Yang It is actually not "demon", but "denom", a shortened form of the word "Denominator". A Demon generally means an...

más de 4 años hace | 1

Respondida
Euler method for 2nd and 1st order differential equation. Im not sure what im doing wrong
Hi @Destiny Barley Setting a very coarse increment of 0.2 sec for the Euler Solver to simulate from 0 to 106 sec seems a little...

más de 4 años hace | 0

Respondida
How to do a hydraulic valve model (valve of mud pump)?
Hi @aleena n a I'm unfamiliar with the triplex mud pump. However, there are various types of valves for fliud flow control in t...

más de 4 años hace | 1

| aceptada

Respondida
2 equations one unknown
Hi @Daniel Bucknavich This is not a direct solution, but it should help you to visualize the physics of skydiving and terminal ...

más de 4 años hace | 2

| aceptada

Respondida
Roots of the determinant of a 12x12 matrix with single nonlinear variable
Hi @Rohan Lalchandani Since the determinant of a 12x12 matrix generates a twelfth-degree polynomial, I remember my math teacher...

más de 4 años hace | 0

Respondida
Change model parameters during simualtion
Hi @Vladislav Glok This looks like a block in Simulink. If the parameters are preset in the model, it maybe difficult. If MATLA...

más de 4 años hace | 0

Respondida
Gain scheduling of a twin-rotor system
Hi @Nir Kotecha I guess the Gain-Scheduling Control will work on Quanser AERO.

más de 4 años hace | 0

Respondida
How to model a servo motor transfer function
Hi @Mario Malizia If your lab has the System Identification Toolbox, it can be used for constructing or estimating the transfer...

más de 4 años hace | 3

| aceptada

Respondida
Modelling state space equation from simulink file
Hi @Abdul Hamid Vorajee The following script allows you to convert the system transfer function into the state-space model in c...

más de 4 años hace | 1

| aceptada

Respondida
Gaussian fiiting of a truncated data
Hi @Arjun Upadhyay With @Bruno Luong's advice, is not good enough? General model Gauss1: f(x) = a1*exp(-((x-b1)/c1)^2)...

más de 4 años hace | 0

Respondida
Help with the following error with quiver
Hi @Amy Topaz If g is assumed as the gravity, then the "Region of Repulsion" is found here. Solving the simultaneous equations ...

más de 4 años hace | 1

| aceptada

Respondida
3D plot surface
Hi @GibonCZ The best is the provide a small sample of the spatial data for testing. Otherwise, the function surf can be used to...

más de 4 años hace | 0

Respondida
Please how to Matrix Lyapunov equation?
Hi @Abdelkader Hd You can use the function lyap to compute the solution to the Lyapunov equation. See the following example: A...

más de 4 años hace | 1

| aceptada

Respondida
How to create membership functions matlab in triangular form?
Hi @mindo akami You probably have already learned the manual way to plot these. Since this is unanswered and if you are still i...

más de 4 años hace | 0

Respondida
I want to generate a sine wave with decreasing amplitude after a fixed interval
Hi @Mariam Ali Because the frequency of the wave is not specified and the decreasing amplitude is mentioned on the title, here ...

más de 4 años hace | 0

Cargar más