Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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 ...

plus de 6 ans il y a | 0

Réponse apportée
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.

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 6 ans il y a | 0

Réponse apportée
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 ...

plus de 6 ans il y a | 0

| A accepté

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

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Training Accuracy of Ensemble Bagged Classifier
At present the Classifier Learner App only supports Validation and Testing Accuracy for ensemble methods of classification. You ...

presque 7 ans il y a | 0

Réponse apportée
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); ...

presque 7 ans il y a | 0

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

presque 7 ans il y a | 0

Réponse apportée
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...

presque 7 ans il y a | 0

Réponse apportée
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...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 0

Réponse apportée
Discrete Wavelet Transform (DWT)
Yes you have understood it correctly, go ahead.

presque 7 ans il y a | 0

Réponse apportée
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...

presque 7 ans il y a | 0

Réponse apportée
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('...

presque 7 ans il y a | 0

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

presque 7 ans il y a | 0

Réponse apportée
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...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 0

Réponse apportée
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-...

presque 7 ans il y a | 1

Réponse apportée
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, ...

presque 7 ans il y a | 0

| A accepté

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

presque 7 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 7 ans il y a | 0

Réponse apportée
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...

presque 7 ans il y a | 0

Réponse apportée
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...

presque 7 ans il y a | 0

Réponse apportée
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 ...

presque 7 ans il y a | 0

| A accepté