Réponse apportée
Size of predictions and targets must match.
@Bahadir. As indicated by the error message, the size of prediction and the target must be equal. I think you should reduce the ...

4 mois il y a | 1

| A accepté

Réponse apportée
Movmedian with non-uniform sample points
@Robert Watson.The SamplePoints argument of movmedian function represents the location of data, it must has the same length with...

4 mois il y a | 0

Question


How to integrate a control system by ode45 with PID control input ?
I want to simulate a control system using ode45 function. The system model can be expressed as , where the control input is the...

4 mois il y a | 2 réponses | 0

2

réponses

A résolu


Calculate Lift Force on an Airfoil
Write a MATLAB function to calculate the lift force acting on an airfoil given the air density, wing area, velocity of the airfl...

4 mois il y a

A résolu


Calculate Drag Force
Write a MATLAB function to compute the drag force on an object moving through air: ​ where: D is drag force (N) ρ is air de...

4 mois il y a

A résolu


Compute Airspeed from Mach Number
Write a MATLAB function that converts a Mach number to airspeed given the speed of sound aa in m/s: V=M⋅a V = airspeed (m/s) M...

4 mois il y a

A résolu


Calculate Reynolds Number
Write a MATLAB function that calculates the Reynolds number for flow over a flat plate: ​ ρ = fluid density (kg/m³) V = veloc...

4 mois il y a

Réponse apportée
Imaginary output from arccosine function when the input is close to -1
@Ali. After loading the m and n vectors from your attached NormalVectors.mat file. I find that the calculation result of theta i...

4 mois il y a | 1

| A accepté

A résolu


Find similar sequences
Another problem inspired by a question on the <http://www.mathworks.com/matlabcentral/answers answers> forum. Given a matrix ...

4 mois il y a

A résolu


Largest Geometric Series
Extension of Ned Gulley's wonderful Problem 317. In a geometric series, ratio of adjacent elements is always a constant value. ...

4 mois il y a

A résolu


Generate Square Wave
Generate a square wave of desired length, number of complete cycles and duty cycle. Here, duty cycle is defined as the fraction ...

4 mois il y a

Réponse apportée
what is power spectrum value mean ('pspectrum')
@지호. The documentation of pspectrum illustrates that the calculation processes to construct the spectrogram of a nonstationary s...

4 mois il y a | 0

A résolu


Find last zero for each column
Given a numeric array of arbitrary size, return the row index of the last zero for each column. If a column contains all nonzero...

4 mois il y a

Réponse apportée
How to change folder for "slprj" folder generation?
@Sergei. For setting up the path of "slprj" folder, you have to configure the SimulinkCacheFolder of project. For instance, my...

4 mois il y a | 1

| A accepté

Question


What is the best practice to understand the source code of MATLAB's built function ?
I want to learn the basic theory of wavelet synchrosqueezed transform, and find that there is a built-in function wsst in the Wa...

5 mois il y a | 1 réponse | 0

1

réponse

Réponse apportée
help me to fix this finveser code
syms t; v01 = 30; v02 = 25; h1 = 25; h2 = 30; g = 9.78; x1(t) = v01*t; y1(t) = h1 - (1/2)*g*t^2; y1(finverse(x1,t))

5 mois il y a | 0

A résolu


Compute the Dedekind psi function
Write a function to compute the Dedekind psi function. The values for n = 1, 2, 3, 4, 5, and 6 are 1, 3, 4, 6, 6, and 12.

5 mois il y a

Réponse apportée
PMSM DRIVE EXAMPLE: where are the model's variables located?
@Stefano. The variables appearing in the base workspace is calculated from the PreloadFcn callback function in the PMSM model. Y...

5 mois il y a | 0

Réponse apportée
Squeeze-and-Excitation-Inception Architecture for 1D-CNN in MATLAB: Input Data Format Specification and Dimension Matching Issues Between Modules
@dachen wang. For the first issue, the documentation of convolution1dLayer states that the desired input format of convolution1d...

5 mois il y a | 0

| A accepté

Réponse apportée
How to open 2023 models in 2025 version
@Tope Roseline. As indicated by the prompt message, the old model established in R2023 has obsolete simscape blocks which are no...

5 mois il y a | 0

Réponse apportée
Unable to use structName.?ClassName for VideoWriter class
I think the options.?ClassName syntax is not supported within arguments block. You should specify each name-value pair individua...

6 mois il y a | 0

Réponse apportée
how can I simplify this code?
function [idx,pairs,scan] = Two_Ended_Search_2(x,target) idx = find(x==target); n = length(x); LR = min(idx-1,n-i...

6 mois il y a | 0

| A accepté

Réponse apportée
Issues creating error bar for bar figure
The problem lies in the variable Names is string array, which is not supported by errorbar function. You can use categorical fun...

6 mois il y a | 0

Réponse apportée
Representing an orifice whose length is greater than the orifice diamter using Simscape Fluids (IL)
I think you can realize such a nozzle using both Pipe (IL) block and Orifice (IL) block. For example, you can connect orifice bl...

6 mois il y a | 1

| A accepté

A résolu


Cumulative Count
Given a row vector of integers with repeating values (with all repeating values occuring in a single continuous run), create an ...

6 mois il y a

A résolu


Multiply real numbers to get the smallest integers
Write a function that takes a vector of real numbers and multiplies them by a factor to produce the integers with the smallest a...

7 mois il y a

Réponse apportée
SVD to a matrix subset (rows)
I find there is a svdappend function for calculating SVD of matrix incrementally, such as from SVD of A to SVD of [A,D] or [A;D]...

7 mois il y a | 0

A résolu


find powers of two
find the unique, non-repeating, powers of 2 that sum to a given non-zero integer, n example: n = 23 result = [1 2 4 16] ...

7 mois il y a

Réponse apportée
Why does this error occur? Error using cwt>parseinputs (line 510) Invalid number of scalar input arguments. Error in cwt (line 297) fbcell = parseinputs(Norig,TTable,varar
You do not need to pass scales argument explicitly. The scales argument is excluded of cwt function's signature. The minimum and...

7 mois il y a | 0

Question


How to simulate electro-hydraulic actuator system with hydraulic oil thermal effect in Simscape
I want to simulate hydraulic actuator with hydraulic oil thermal effect use Simscape. I find there is an example model Close...

7 mois il y a | 1 réponse | 0

1

réponse

Charger plus