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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

| accepted

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

6 years ago | 0

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

6 years ago | 0

| accepted

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

6 years ago | 0

| accepted

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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

| accepted

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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

| accepted

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

6 years ago | 0

| accepted

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

6 years ago | 0

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

6 years ago | 1

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

6 years ago | 0

| accepted

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

6 years ago | 1

| accepted

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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

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

6 years ago | 0

| accepted