문제를 풀었습니다


Sum along each diagonal of a matrix
Write a routine that returns the sums along the diagonals of a given matrix, A, where the first diagonal is the bottom left corn...

4개월 전

답변 있음
How to have a vector that is obtained by discretizing a and b for each i.
you can use arrayfun function to process array element. a=[1 2 3 4 5 6 7 8 9 10 11 12]; b=[24 23 22 21 20 19 18 17 16 15 14 ...

4개월 전 | 0

| 수락됨

질문


How to understand learnable parameters of cwtlayer and the underlying autograd calculation
I was learning continuous wavelet transform (cwt) and found that there was a cwtlayer in Deep Learning Toolbox. The document...

4개월 전 | 답변 수: 1 | 0

1

답변

질문


Why the length of power spectrum is fixed at 4096 when the signal's length varies ?
I was using pspectrum function to obtain the power spectrum of time series signals. However, I find that when I set different le...

5개월 전 | 답변 수: 1 | 0

1

답변

질문


How to Solve Linear Complementarity Problem (LCP) with MATLAB ?
I want to use MATLAB for solving Linear Complementarity Problem (LCP) as defined in the following: what optimization function...

5개월 전 | 답변 수: 1 | 1

1

답변

답변 있음
How can I simulate two-rigid body-interactions when the complete motion of one body is known using Simscape Multibody?
@yang. You can add prescribed motion trajectory to the 6DoF Joint's actuation input port as illustrated in the following image. ...

5개월 전 | 0

답변 있음
how to change the size of the fonts inside the bar graph
use text function with FontSize option to change font size x = [1 2 3]; vals = [2 3 6; 11 23 26]; b = bar(x,vals); xtips1 ...

6개월 전 | 0

| 수락됨

답변 있음
Iteratively remove the rows and columns of a matrix
M = 3; N = 8; [H00,H10,H20,H30,H40,H50,H60,H70] = deal(randi(10,M)); [H11,H21,H31,H41,H51,H61,H71] = deal(randi(20,M)); H ...

7개월 전 | 0

문제를 풀었습니다


Project Euler Problem 48: Self Powers
The series,. Return a string of the last ten digits of the series:. Hint: Use modular arithmetic! Spoiler: The solution is...

7개월 전

문제를 풀었습니다


Integer Division Without Remainder
Write a function that takes two positive integers, a and b, and returns the result of integer division (quotient) without remain...

7개월 전

답변 있음
Matrix Near Singularity Warning During the ODEs Solving Procedure
Through stepwise debugging, I find that the badly scaling issue was induced by the stiffness value K, which is a large value...

7개월 전 | 0

| 수락됨

질문


Matrix Near Singularity Warning During the ODEs Solving Procedure
I am working with multi rigid body systems simulation utilizing Runge-Kutta (RK) numerical integration method. In the every ...

7개월 전 | 답변 수: 1 | 0

1

답변

답변 있음
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 ...

10개월 전 | 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...

10개월 전 | 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...

10개월 전 | 답변 수: 1 | 2

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 ...

10개월 전 | 답변 수: 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

10개월 전

문제를 풀었습니다


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 ...

10개월 전

문제를 풀었습니다


Do Fast Fourier Transformation
Example Fast Fourier Transformation from vector [2,1]) ans = 3 1

10개월 전

문제를 풀었습니다


EZ9
EZ

10개월 전

문제를 풀었습니다


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 = ...

12개월 전

문제를 풀었습니다


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...

12개월 전

문제를 풀었습니다


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 =...

12개월 전

문제를 풀었습니다


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...

12개월 전

문제를 풀었습니다


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...

12개월 전

문제를 풀었습니다


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.

12개월 전

문제를 풀었습니다


Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

12개월 전

문제를 풀었습니다


Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

12개월 전

문제를 풀었습니다


radius of a spherical planet
You just measured its surface area, that is the input.

12개월 전

문제를 풀었습니다


Pi Estimate 1
Estimate Pi as described in the following link: <http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>

12개월 전

더 보기