MATLAB Solutions & Expert Answers

Ask an expert. Trust the answer.
Academic and engineering questions answered by verified MATLAB professionals.

MATLAB expert answering student questions
Showing page 177 of 208 Ask a Question
I want to simulate with various input.
Timothy · Nov 20, 2020 · matlab , control system ,

sys = 1(1+s)   input = 1/s - exp(-2*s)/s   So, how can I get lsim output "sys*input" ?? I must make digital signal of input??…

How do I convert this into a 2d matrix of 50x50 in Matlab?
Remingtonsmith · Nov 19, 2020 · matlab , matrix , simulink

(1,1) 0.4202 (2,1) 0.7436 (3,1) 1.7309 (4,1) 1.2414 (5,1) 1.4897 (6,1) 1.6088 (7,1) 3.1441 (8,1) 3.4509 (9,1) 4.1381 (10,1) 3.3498 (11,1) 4.3164 (12,1) 3.3340 (1,2) 1.8620 (2,2) 2.…

How can I return the last value of a vector?
Tanner · Nov 19, 2020 · matlab , values , vector

is there a command in Matlab, which returns the last value of a vector? In R is this command called "tail". For example: X = [1, 2, 3, 4] and I need a command which returns the las…

Add SINGLE element to array or vector
Jasper · Nov 19, 2020 · matlab , single element , vector

I have a vector of the format: x = [xval(1) xval(2) … xval(n)] , and I want to add an element to the end, xval(n+1). How do I do that?…

How to add values to a vector?
Brianna · Nov 19, 2020 · matlab , values , vector

Hello! I have the values ??obtained from the matrix E = 1x11004, with some operations in the loop I need to remove the last values, can I do 1x11004 + 2 = 1x11006. My last values ?…

Matlab: optimize code
Theodore · Nov 18, 2020 · matlab , control system ,

Problem: I have the trajectories of 14 users: I have compare the trajectories of every user and for each one, I have calculated the longest common sequence: TrajSimilarity(1,k).aLo…

Conversion to logical from sym is not possible.
Penelope · Nov 18, 2020 · matlab , control system ,

clc clear syms t u r a b c d x y j v t Output STP RMP p= input('Number of intervals of the signal (Integer value):'); n=0; a=input('Enter signal starting time:'); b=input('Enter si…

Get a Free Consultation or a Sample Assignment Review!