Community Profile

photo

Bandar


Last seen: 3개월 전 2019년부터 활동

통계

All
  • Thankful Level 3
  • Promoter
  • Solver
  • First Answer

배지 보기

Content Feed

보기 기준

질문


How to force Matlab to be consistent with trigonometric expressions
I have two symbolic matrices. They are identical, but the simplifications of their trigonometric expressions are not. Therefore,...

거의 2년 전 | 답변 수: 1 | 0

1

답변

질문


PID Controller Tuning Based on Measured Multi-Input Multi-Output
I've designed position controller that allows me to control the position of the robot's end-effector. The inputs are the x_d,y_d...

거의 2년 전 | 답변 수: 0 | 0

0

답변

질문


Quaternions with symbolic elements
I'm trying to create quaternion number that contains symbolic elements but Matlab throws an error. syms a d=quaternion(1,2,3,...

대략 2년 전 | 답변 수: 1 | 0

1

답변

질문


How to create a single gobjects for different plots to avoid using clf
I'm trying to use plot() several times without using clf because this causing my animation to blink. In the discussion in here [...

2년 초과 전 | 답변 수: 1 | 0

1

답변

질문


plot is blinking when clearing figure
I'm doing a project related to sending/receiving via udp port. Currently, I'm doing the project based on two MATLAB sessions. Bo...

2년 초과 전 | 답변 수: 1 | 0

1

답변

질문


How to use ode solvers inside while/for loops for animation?
It is not lucid from the documnation how to use the solution of an ODE at each step. The examples show how one can pass the enti...

2년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Efficient way to implement this UDP protocol for loopback IP
I'm working on a project where I need to send data via UDP protocol from one PC to another. Currently, I'm using two Matlab sess...

2년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Clarification about modifying properties in handle class
Take a look at the following class classdef Counter < handle properties count end methods ...

2년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Multithread inside class method
I would like to implment a project for teleoperation task in robotics. In C++, I can create a class with method that keeps liste...

2년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
How to delete specific values from matrix
You can't delete a single element in a matrix. This will affect the structure of the matrix. You could delete an entire row or c...

거의 3년 전 | 0

질문


How to avoid the dot operator when accessing property inside class method
I have a class that contains method. When I access one of properties, I need to use dot operator as follows: classdef Robot < h...

거의 3년 전 | 답변 수: 1 | 0

1

답변

답변 있음
Substract all elements from one vector minus all elements from other vector
t1 = datetime(2013,11,5,23,2,0); t2 = datetime(2013,10,5,23,3,0); t3 = datetime(2013,10,5,23,1,0); vec1 = [t1 t2 t3]; t4 = d...

거의 3년 전 | 0

질문


Adding Delay/Jitter to TCP/IP protocol
I have two Matlab sessions opened. I can send adn recieve data via tcpserver/tcpclient. I would like to emulate network delay/ji...

거의 3년 전 | 답변 수: 1 | 0

1

답변

답변 있음
Calculating Equation of a Line with Known Angle Relative to Other Line
where m is the slope of a line. In your case, the angle and one of the slop of the intersected lines are known.

3년 초과 전 | 0

답변 있음
Not enough input arguments
You are defining the names of inputs like the names of the ouputs. The proper header of function is like this function [outpu...

3년 초과 전 | 0

답변 있음
Matrixes must agree error
If you would like to carry out element-by-element mutliplication, vectors must have same size. In your case f has 4 elements whe...

3년 초과 전 | 1

질문


How to define transfer function as function in s
In control systems, we use transfer functions a lot. One way to define transfer function is merely to use tf(). For example, we ...

3년 초과 전 | 답변 수: 1 | 0

1

답변

문제를 풀었습니다


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

3년 초과 전

문제를 풀었습니다


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

3년 초과 전

문제를 풀었습니다


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

3년 초과 전

문제를 풀었습니다


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

3년 초과 전

질문


Inconsistent result with the documentation
Take a look at a feedback system where G=1/s and H=1 where G is forward feedback and H backward feedback. ----O---------|G|-...

대략 4년 전 | 답변 수: 1 | 0

1

답변

답변 있음
Finding a number in an array less than 2
For this case, you may consider using vectorization. Try this code A = [0 -1 2 3 2 5 -2]; A(A<2)

대략 4년 전 | 0

질문


Clarification about using only the first 'namelengthmax' characters of the name
In Matlab documentation, it states the following Although variable names can be of any length, MATLAB uses only the first N ch...

대략 4년 전 | 답변 수: 1 | 0

1

답변

질문


Remove or Undo GridLayout with App Designer.
I'm using app designer. I've noticed I can't undo or remove grid layout. Is there any solution for this problem? I'm using Matla...

4년 초과 전 | 답변 수: 2 | 2

2

답변

답변 있음
how to generate matrix with any size in same pattern
n=5; v =-2*ones(1,n); p =ones(1,n-1); B =diag(v); C =diag(p,1); D =diag(p,-1); A=B+C+D The result is A = -2 1...

4년 초과 전 | 0

답변 있음
Mean of certain elements within a matrix
A=[1 2 3 4 5 6; 7 8 9 10 11 12;13 14 15 16 16 18;19 20 21 22 23 24] [row,~]=size(A); for i=1:row-1 c = A(i,[5 6]); r...

4년 초과 전 | 0

답변 있음
How to calculate moving average
Take a look this data file=[1 2 3 4]; movmean(file,3) which returns 1.5000 2.0000 3.0000 3.5000 The filter works...

4년 초과 전 | 3

답변 있음
plot with points in file
Assume data stored in this form 1 23 2 34 3 54 The code is file = load('data.txt'); n=3; x=file(randi(10,1,n),1); % 10:...

4년 초과 전 | 0

답변 있음
Array indices must be positive integers or logical values.
Indices must be postivie integer. In your code, lambda is a vector that contains non-integers. lamda = 0:0.01:3; ... l_sun(...

4년 초과 전 | 0

더 보기