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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

| accettato

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

| accettato

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

oltre 6 anni fa | 0

| accettato

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

| accettato

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

| accettato

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

oltre 6 anni fa | 0

| accettato

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 1

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

oltre 6 anni fa | 0

| accettato

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

oltre 6 anni fa | 1

| accettato

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

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

oltre 6 anni fa | 0

| accettato