Poster edited away the question.
Duplicate of previous post http://www.mathworks.com/matlabcentral/answers/163009-how-to-show-a-map
DUPLICATE TO: <http://www.mathworks.com/matlabcentral/answers/162921-how-do-i-obtain-impulse-response>
Not a question but perhaps a request for code.
EXACT DUPLICATE OF: <http://www.mathworks.com/matlabcentral/answers/162753-converting-a-set-of-indexed-equations-into-a-matrix>
EXACT DUPLICATE OF: <http://www.mathworks.com/matlabcentral/answers/162637-converting-a-set-of-indexed-equations-into-a-matrix>
Exact duplicate of http://uk.mathworks.com/matlabcentral/answers/162717 asked a few minutes later.
Dear sir , I am also in need to generate a 3d-plot of my problem for getting better analysis of it, but I am not getting a solution for that ,kindly help me . My problem is as follows: This is my request in finding out the state response of the system described by the equation: x(i+1,j+1)=A1*x(i,j+1)+A2*x(i+1,j)+B1*u(i,j+1)+B2*u(i+1,j) ------(1) x(i+1,j+1),x(i,j+1),x(i+1,j) are state vector matrices of nx1 dimensions. u(i,j+1),u(i+1,j) are input vector matrices of mx1 dimensions, A1,A2 are known system matrices of nxn dimensions, B1,B2 are known input matrices of nxm dimensions. further u(i,j+1)=k1*x(i,j+1)---(c), and u(i+1,j)=k2*x(i+1,j)----(d) where k1,k2 are feedback path gains provided on state vector x(i,j+1) and x(i+1,j) respectively of mxn dimensions,to make it stable closed loop system, i.e.,on substituting the value of u(i,j+1) and u(i+1,j) from (c) and (d) we get the closed loop system equation written below: x(i+1,j+1)=A1*x(i,j+1)+A2*x(i+1,j)+B1*k1*x(i,j+1)+B2*k2*x(i+1,j) ------(2) Equation (1) is an open loop system equation and equation (2) is representing closed loop system equation. When we going to plot the two equations, of course considering the initial condition, x(1,j)=0.5 and x(i,1)=0.2, then with the help of matlab plot we can able to see that open loop system plot is divergent representing an unstable system and closed loop system plot is convergent representing a stable system. .Can you please help me in writing matlab code for this open loop system and closed loop system so that I can generate my system plots I am in need to plot it, the function x generated by equation 1 and 2 with respect to i and j axis, for getting better insight into it. If you have any query regarding my question then, please get it clarified and kindly help me. Take A1=[.81 1;0 .22]; A2=[.1 1;0 .8]; B1=[-.01;0]; B2=[0;1]; k1=[.1482 .224]; k2=[-.0002 -.0009]; In this case ,the dimension n and m of the matrices are n=2 and m=1. I have tried with this code but the plot cannot be generated due to matrix dimension mismatching. A1 = [0, -.75; -1, 0]; A2 = [.27, 0; 0, 0]; A3 = [0, -.001; 0, 0]; N = 100; % 100 iterations. X(2, N, N) = 0; % Set both components to 1 at both boundaries. X(:, 1, :) = .12; X(:, :, 1) = .6; % Generate the values. for i = 1 : N-1 for j = 1 : N-1 X(:, i+1, j+1) = A1*X(:, i, j+1) + A2*X(:, i+1, j) + A3*X(:, i, j); end end [i,j] = meshgrid(1:1:100); mesh(i,j,X)
Text appears to be copied directly from a homework question/assignment.
Third Question in the last few minutes from ‘Yuling’ (at Drexel University) that is a scanned-in and uploaded homework problem without even an attempt at coding it. I find this sort of blatant academic dishonesty highly offensive.
Not even a question!
Duplicate to: <http://www.mathworks.com/matlabcentral/answers/160019-how-do-i-fix-my-elements-in-my-code-so-that-they-can-be-the-same>