Answered
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 months ago | 0

| accepted

Question


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 months ago | 1 answer | 0

1

answer

Question


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

4 months ago | 1 answer | 0

1

answer

Question


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 months ago | 1 answer | 1

1

answer

Answered
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 months ago | 0

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

5 months ago | 0

| accepted

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

6 months ago | 0

Solved


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 months ago

Solved


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 months ago

Answered
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 months ago | 0

| accepted

Question


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 months ago | 1 answer | 0

1

answer

Answered
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 months ago | 1

| accepted

Answered
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 months ago | 1

Question


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 months ago | 1 answer | 2

1

answer

Question


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 months ago | 1 answer | 0

1

answer

Solved


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 months ago

Solved


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 months ago

Solved


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

10 months ago

Solved


EZ9
EZ

10 months ago

Solved


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 months ago

Solved


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 months ago

Solved


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 months ago

Solved


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 months ago

Solved


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 months ago

Solved


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 months ago

Solved


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

12 months ago

Solved


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

12 months ago

Solved


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

12 months ago

Solved


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

12 months ago

Solved


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

12 months ago

Load more