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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

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

más de 6 años hace | 1

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 1

| aceptada

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

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

más de 6 años hace | 0

| aceptada