Feeds
답변 있음
How to plot a string signal/array?
In the Documentation, the Simulink.sdi.plot function can plot different objects exported from simulations, it can reproduce the ...
How to plot a string signal/array?
In the Documentation, the Simulink.sdi.plot function can plot different objects exported from simulations, it can reproduce the ...
대략 1개월 전 | 1
| 수락됨
답변 있음
The Parameter of ODE is not Updated When the EventCallback Function is Called
I have solved this isssue with the following odeEvent object definition: E = odeEvent("EventFcn",@impactEvent,"Direction","asce...
The Parameter of ODE is not Updated When the EventCallback Function is Called
I have solved this isssue with the following odeEvent object definition: E = odeEvent("EventFcn",@impactEvent,"Direction","asce...
대략 2개월 전 | 1
질문
The Parameter of ODE is not Updated When the EventCallback Function is Called
I was simulating ODEs which incorporate additional parameter (ydot = f(t,y,P)). There is an event occurs in the simulation proc...
대략 2개월 전 | 답변 수: 1 | 1
1
답변질문
How to Output Updated Parameters Value in ode Integration Process When the odeEvent is triggered ?
I was working on multi-body systems collision simulation utilize ode MATLAB function and odeEvent function. The impact between ...
대략 2개월 전 | 답변 수: 1 | 0
1
답변문제를 풀었습니다
Convert from Base 10 to base 5
Convert the input number from base 10 into base 5: for example: if a(in base 10)= 5 then a(in base 5)= 10
대략 2개월 전
문제를 풀었습니다
Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...
대략 2개월 전
문제를 풀었습니다
Do Fast Fourier Transformation
Example Fast Fourier Transformation from vector [2,1]) ans = 3 1
대략 2개월 전
문제를 풀었습니다
Getting values from a vector
This exercise is for finding the values that meet your criteria. a = [-5 28 7 83 73]; b = 23 ; c = (a > b) Then : c = ...
3개월 전
문제를 풀었습니다
Determine ground distance from an aircraft to a DME station
In aviation, distance measuring equipment (DME) uses radio signals to determine slant distance from an aircraft to a ground stat...
3개월 전
문제를 풀었습니다
De-dupe
Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...
3개월 전
문제를 풀었습니다
Neural Nets: Activation functions
Return values of selected Activation function type for value,vector, and matrices. y=Activation(x,id); where id is 1:4 for ReLU...
3개월 전
문제를 풀었습니다
Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given number of...
3개월 전
문제를 풀었습니다
Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.
3개월 전
문제를 풀었습니다
Pi Estimate 1
Estimate Pi as described in the following link: <http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>
3개월 전
문제를 풀었습니다
Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...
3개월 전
문제를 풀었습니다
Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...
3개월 전
문제를 풀었습니다
Count consecutive 0's in between values of 1
So you have some vector that contains 1's and 0's, and the goal is to return a vector that gives the number of 0's between each ...
3개월 전
문제를 풀었습니다
Sum of series IX
What is the sum of the following sequence: Σ 1/k! for k=1...n for different n?
3개월 전
문제를 풀었습니다
Sum of series
a(n) = n^2 - (n-1)^2 find the summation of the series upto n i.e. a(1)+a(2)+...+a(n)
3개월 전
문제를 풀었습니다
Sum of series VI
What is the sum of the following sequence: Σk⋅k! for k=1...n for different n?
3개월 전
문제를 풀었습니다
Sum of series V
What is the sum of the following sequence: Σk(k+1) for k=1...n for different n?
3개월 전
문제를 풀었습니다
Sum of series IV
What is the sum of the following sequence: Σ(-1)^(k+1) (2k-1)^2 for k=1...n for different n?
3개월 전
문제를 풀었습니다
Sum of series III
What is the sum of the following sequence: Σ(2k-1)^3 for k=1...n for different n?
3개월 전
문제를 풀었습니다
Sum of series I
What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?
3개월 전
문제를 풀었습니다
Sum of series VII
What is the sum of the following sequence: Σ(km^k)/(k+m)! for k=1...n for different n and m?
3개월 전