回答済み
Output a plot and a matrix from a function
Hi @Miranda Gabriel Remove the semicolon ";" in this line should produce mymatrix on the Command Window. mymatrix = [locs(:), ...

4年以上 前 | 0

回答済み
I want to plot an implicit equation
Hi @mohd ayaz I tried to plot this way to first visualize how the curve looks like for the positive part of . Qm = linspace(-1...

4年以上 前 | 1

回答済み
How to deal with the time response of first order system?
@Cola, let's correct your Simulink model first. The ODE is given by which can be rearranged into Integrating both sides a...

4年以上 前 | 2

| 採用済み

回答済み
Plotting streamlines in an unsteady flow given vector field equation
@Kiat Tsen Lim Since it involves the time dimension, I think you will need to use the quiver3() function. https://www.mathwork...

4年以上 前 | 1

| 採用済み

回答済み
How can I create a function with several summations and Kronecker delta symbol in two dimension?
@matlab beginner Have you tried this kroneckerDelta() function? https://www.mathworks.com/help/symbolic/sym.kroneckerdelta.htm...

4年以上 前 | 1

回答済み
Sigma-delta ADC under simscape
@Peter Balazovic Found an example model here. Do you think you can remodel it with the Simscape blocks? https://www.mathworks....

4年以上 前 | 0

回答済み
Create a long rectangular signal with a function handle
@AEW Second opinion! fcn = @(t) (sign(sin(2*pi*t)) + 1)/2; ezplot(fcn, 0, 5)

4年以上 前 | 1

回答済み
ode return NaN :(
Hi @ZH CC The odeToVectorField(eqn) returns this V = ...

4年以上 前 | 1

| 採用済み

回答済み
plotting, no graph appears
@Patrick Monst Because you forgot the 'dot' when dividing corresponding elements in the x vector. x = 0:0.01:1; y = (0.5*(1-x...

4年以上 前 | 0

回答済み
given the aeeay of angles an = pi/n,n=2,3,...,9.generete a script that computes cos an and display the results as
@Mrunal Shah If you don't want to use the For loop approach, then try this: n = 2:1:9 A = [n; cos(pi./n)]; fprintf('%s %10s\...

4年以上 前 | 0

回答済み
How do i get a direction field plot?
Hi @Tuân Nguyen Because there are two equilibrium points and , I think it should look like this. [T, P] = meshgrid(0:6e3/14:6...

4年以上 前 | 2

| 採用済み

回答済み
How to design PI controllers within Maltab?
Hi @Kyle Ramphal If the result from the PID Tuner app can be admitted as the design solution, then just do so to directly obtai...

4年以上 前 | 1

| 採用済み

回答済み
How to solve and graph a second order nonlinear differential equation?
Hi @Parcher Not exactly sure what you are tring to solve, but this worth a try, although it may not be the exact solution that ...

4年以上 前 | 0

回答済み
How to solve an equation with two variables?
@Enver Kocaman The surface has singularities because there are conditions that cause , (division-by-zero). The surface shows a...

4年以上 前 | 0

回答済み
How to add my IQ samples in Simulink as input data?
Hi @raya alhajri You can load data from MAT file into Simulink model using the "From File" Block directly: https://www.mathwor...

4年以上 前 | 0

回答済み
how to collect similar equation and find all of them
@wlat hamad Have you checked if the collect() function works for your case? https://www.mathworks.com/help/symbolic/sym.collec...

4年以上 前 | 1

| 採用済み

回答済み
Print value of correlation to a plot displaying two functions
@Loriann Chevalier Perhaps like this? v = corr(y1,y2,'Type','Kendall'); txt = ['Corr = ', num2str(v)]; text(4, 0.5, txt)

4年以上 前 | 0

回答済み
How to do an elimination procedure to represent the solution (matrix)
Can you show the slides and elimination formulas? Otherwise, I think this elimination procedure: A = [1 -2 1; 0 2 -8; ...

4年以上 前 | 2

| 採用済み

回答済み
How to plot two vectors at the same time
@Jonas Morgner, Do you mean llke this? v1 = [1 -2 -5 6]; v2 = -100 : .1 : 100; y = polyval(v1, v2); plot(v2, y)

4年以上 前 | 2

| 採用済み

回答済み
In the fraction formed by the symbolic variable "s", the coefficient is too large and shows as “Inf”, which cannot separate the numerator and denominator. How to simplify it?
@梦雪 王, Have you tried this? sympref('FloatingPointOutput', true) It should display the expression in floating-point format.

4年以上 前 | 1

回答済み
Using ‘surf’ plot the surface f (x, y) =x(x^2+y^2).
I guess it's here: z=x.*(x.^2 + y.^2);

4年以上 前 | 1

回答済み
Evaluate the expression 𝑦 = 4𝑥3 + 6𝑥2 + 𝑥 + 1 using MATLAB for 𝑥 = 2.
@Muhammad Kashif This is very strictly based how you displayed the equation. x = 2; y = 4*x*3 + 6*x*2 + x + 1 Mostly likel...

4年以上 前 | 0

回答済み
Evaluate (3-4i)(-4+3i) in MATLAB.
@Muhammad Kashif You will need a Alphanumeric Keyboard lets the user type in Latin alphabet, numeric characters, and mathemati...

4年以上 前 | 1

回答済み
Problem with designing MPC
Hi @Marcin Pilzak Because you need to have the MPC object in the Workspace. And this is how you create a basic one: Plant = tf...

4年以上 前 | 0

回答済み
How to find steady state solution of recatti equation
@shahin sharafi You can find the solution for x with the Implicit algebraic Riccati equation solver: [X, K, L] = icare(A_Star,...

4年以上 前 | 0

回答済み
how to save variables in a for loop
@ADNAN KIRAL for x =1:5 y(x) = x*x; end disp(y)

4年以上 前 | 1

| 採用済み

回答済み
How to calculate rise time, settling time, and overshoot based on real data measurements
Hi @Konvictus177 The rise time, settling time, and percentage overshoot can directly obtained from measured step response data....

4年以上 前 | 1

| 採用済み

回答済み
Solving a non linear ODE with unknown parameter
Hi @khaoula Oueslati This governing equations are given and you have acquired the data. The objective is want to find . ...

4年以上 前 | 0

回答済み
What is this symbol?
@hyun woo ryu It's a Selector. https://www.mathworks.com/help/simulink/slref/selector.html

4年以上 前 | 1

| 採用済み

回答済み
Solve equation by fzeros
@Hoang Vu Huy The fzero requires initial guess. Pick the initial value that is closest to the root: fzero(@(x) x - 4*sin(x), p...

4年以上 前 | 1

さらに読み込む