已回答
Share variables between two level 2 s-function blocks
There are 2 methods only to solve your problem and both you already know either give a physical connection between the two block...

5 years 前 | 0

已回答
Missing Windows header file in Matlab 2019a for MacOS
mex files that are generated while compiling are different for different operating systems. You can find more about that in this...

5 years 前 | 0

已回答
Using chrono in s-functions
You can use chrono library inside S-Functions as long as the compiler you are using knows about those libraries. Check your comp...

5 years 前 | 0

已回答
How to determine the sequence of generated code?
I hope the following links gives an idea you may be looking for https://www.mathworks.com/matlabcentral/fileexchange/7047-block...

5 years 前 | 0

已回答
while or for loop
Assuming you know length of the sequence using for loop would be better as it would iterate over the entire sequence to find the...

5 years 前 | 0

已回答
Why are the results from conv2d and multiplication in Fourier Domain not the same?
conv2 will have negligible rounding off errors as compared to taking fft then taking ifftn and taking real part. Simply because ...

5 years 前 | 0

已回答
Given an array A of n elements. We need to change the array into a permutation of numbers from 1 to n using minimum replacements in the array.
Hi, I am attaching a code file for the above question. Hope it helps.

5 years 前 | 0

| 已接受

已回答
compute the average power of a discrete-time signal
Hi, what you can try is first find the length of your audio samples file. Which would be samplingRate*timeLength of signal. Now...

5 years 前 | 0

已回答
Save variables while using ode solver
What you can try is at every iteration save the variables into a .mat file save('odef.mat', 'constant1', '-append') This will ...

5 years 前 | 0

| 已接受

已回答
how do i change StepTolerance?
Hi, As I have attached an example code for changing step tolerance. Hope it helps your cause.

5 years 前 | 0

| 已接受

已回答
Training Accuracy of Ensemble Bagged Classifier
At present the Classifier Learner App only supports Validation and Testing Accuracy for ensemble methods of classification. You ...

5 years 前 | 0

已回答
Fill vector with function
Kindly try to solve and show what you have attempted before posting a question. The following code might help a=randn(1,100); ...

5 years 前 | 0

已回答
Gaussian fit in a log scale
Kindly use set(gca,'YScale','log'); after the plot command to convert the y axis to log scale.

5 years 前 | 0

已回答
Why there is a mis-match when I do the summation of the elements of the vector in simulink function and workspace editor block??
When importing data into Simulink using From Workspace block the first column always represents time. So lets say we imported an...

5 years 前 | 0

已回答
Extracting Time Profiles from 3D+t data (4D)
The code is already well optimized, except parfor can be used in this case rather than just for to get the code running faster i...

5 years 前 | 0

| 已接受

已回答
how to assign the value to the matrix
I am attaching a code which helps you generate a cell array of how you want your matrix to look like. It’s a pseudo code, you ca...

5 years 前 | 0

已回答
Discrete Wavelet Transform (DWT)
Yes you have understood it correctly, go ahead.

5 years 前 | 0

已回答
matlab code to find the pca basis vectors of input image by sliding the window across the pixels
Please go through the following links that contain the information on applying PCA on an image. https://www.mathworks.com/matla...

5 years 前 | 0

已回答
Calling python from matlab isnt working
You can use MATLAB’s system function which will execute your python code as you would do on command prompt in Windows. system('...

5 years 前 | 0

已回答
Version 2019a Capability?
Presently, 2019a does not have any such feature. We have informed to the concerned developers and VHDL to MATLAB code conversion...

5 years 前 | 0

已回答
I want to find the top apexes in a BW image in matlab
To solve the problem we will use concept of connected components. You can go through following steps To correctly get the numb...

5 years 前 | 0

| 已接受

已回答
Custom Classification Loss: which is the role of S?
A classification score represents the confidence of the classifier into a class. The range of score depends on ensemble type. Fo...

5 years 前 | 0

| 已接受

已回答
CapSize for a customized errorbar plot
As of now, there is no method at present for controlling CapSize using line plot. You can write your custom code only to make ca...

5 years 前 | 0

已回答
Match color of images by common areas
You can have a look at following articles that might help you. https://www.mathworks.com/matlabcentral/answers/397488-matching-...

5 years 前 | 1

已回答
Filter Designer coefficiants of IIR Filter
The additional gain factor is multiplied at input of each stage. That is, the input is multiplied by 1st section’s gain factor, ...

5 years 前 | 0

| 已接受

已回答
CNNのフィルタ数とフィルタサイズの決め方について
The purpose of convolution operation in images is to preserve spatial information and features. The size and stride of the filte...

5 years 前 | 1

| 已接受

已回答
Transfer learning for ML models
I am providing link to the documentation and videos explaining examples via code for transfer learning. You can find more detail...

5 years 前 | 0

已回答
Manipulating data extracted from WRDS
I am providing link to the documentation of sort function in MATLAB below in which steps are shown how you can sort data by a sp...

5 years 前 | 0

已回答
BPM detection using Gamedev algorithm
The missing points in the above implementation are as follows:- The first sample points you have used for comparing average ene...

5 years 前 | 0

已回答
How can I customly fix the Data cursor location in the Matlab plot?
I am assuming you have the equation used for plotting. You can feed the value “x=0” in the function to get the value of ...

5 years 前 | 0

| 已接受