Answered
How to get simulated values for a polynomial given the coefficients.
I have no idea what you want to do. If you want to _evaluate_ your polynomial (represented by the coefficient vector) at a ...

9 years ago | 0

| accepted

Answered
Undefined function or variable 'cosump'. Error in calc (line 3). what am I doing wrong?
You have a repeated typographical error, typing *|‘cosump’|* instead of *|‘consump’|*. See if this corrected version of you...

9 years ago | 0

| accepted

Answered
How to solve the error?
I am not certain what result you want. Try this: Out = cat(4, A1, C)

9 years ago | 0

| accepted

Answered
calculate frequency response from two signal on domain time in matlab
You cannot get any useful information from your data because of the noise. However, with the correct sampling frequency (you di...

9 years ago | 2

Answered
System of inequalities using logical operators
This turned out to be something of a challenge. I used *|fsolve|* to determine the points of equality. I will let you interpre...

9 years ago | 2

Answered
Output each for loop iteration to separate arrays
Try this: fun = @(a,b,c) a + b - c; % Create Function a = 3; ...

9 years ago | 1

| accepted

Answered
why reshape command is actually needed ?
*_@Touhidul islam_ —* With the later advantage of being able to see what are apparently the entire code, what you describe is...

9 years ago | 0

Answered
Can anyone help me out with the following code ?
*@Touhidul islam —* If you want to know what that section of code is doing, the first comment describes it: % If CENT...

9 years ago | 0

Answered
Get row no by which the other row is less
I am not certain what you are asking, since there appear to be two different requests. Try this: A{1,1} = [1,0,1,1,1...

9 years ago | 1

| accepted

Answered
i have S 300x800 data set matrix , i need code for replacing coloumns
I cannot claim that this is completely robust since I’ve experimented only with this code. I appears to do the same operation i...

9 years ago | 0

| accepted

Answered
Removing of duplicates from first column and summing of elements in second column
This works: [Xu1,~,Ic2] = unique(X(:,1), 'stable'); Tally = accumarray(Ic2, X(:,2)); Y = [Xu1 Tally] Y =...

9 years ago | 0

| accepted

Answered
Making a circular plot of muscle activation
The <https://www.mathworks.com/help/matlab/ref/polarplot.html *|polarplot|*> (link) function was introduced in *|R2016a|*. If y...

9 years ago | 1

| accepted

Answered
plotting differential equation converging to stability value
Use the efficient and robust core MATLAB differential equation solvers instead of your loop. I am not certain that I coded ...

9 years ago | 0

Answered
How to solve equation y=mx+c where y and x are variables with there values stored in matrix of size = (100x1)?
There are at least two ways to estimate your parameters: *|1.|* Use the *|mldivide,\|* operator: B = [x ones(size(x)...

9 years ago | 0

Answered
Assigning value to set of (row, col) pairs
Use the *|sub2ind|* function to create linear indices from your subscript matrix: RC = [2, 3 3, 4 4, 5];...

9 years ago | 2

Answered
Calculate the overlap to validate model
I created two signals to experiment with this. The code is straightforward: t = linspace(0, 100, 1000); EMG = sin(2*pi...

9 years ago | 0

| accepted

Answered
Why the Matlab window returns 'Incorrect' even though the code is correct
The only possibility I can think of is that in the instructions, *|x|* and *|y|* are lower-case. In your code, they are upper c...

9 years ago | 0

Answered
Can anyone explain the following code ?
With *|‘K’|* defined as *|8|*, this segment: for i = 1:K idx = find(DAL(:,K+1) == i); X(idx,:) = repmat(CENT...

9 years ago | 0

| accepted

Answered
I wanted to copy dicom files from one place to another. But shows an error. How to fix it?
In Windows, the *|dir|* command will usually return the first two values as dots, not a file name. When I run this code: ...

9 years ago | 0

Answered
what does it mean by [ ] in the following code
In the *|min|* function, the second argument is usually the second numerical *_scalar_* value to be compared. If you only have ...

9 years ago | 1

Answered
Failure to initiate Matlab graphics
According to the <https://mtex-toolbox.github.io/files/doc/installation.html *MTEX Instllation Guide*> (link), MATLAB versions *...

9 years ago | 0

Answered
how to reconstruc a signal from its modified discrete fourier transform?
You seem to have defined a filter in the frequency domain. See theSignal Processing Toolbox <https://www.mathworks.com/help/sig...

9 years ago | 0

Answered
How can I find all points inside a ellipse
*_‘My end goal is to get a matrix of all x-values and a corresponding matrix of all y-values for the points in/out that ellipse....

9 years ago | 0

| accepted

Answered
Why do I get different results from the same math in two languages?
One difference is that in your BVA code you have this conditional: If (n = 0) And (m = 0) Then and in your MATLAB code ...

9 years ago | 0

| accepted

Answered
How do I merge signals from the same wav file together?
If you have the Signal Processing Toolbox *|R2016a|* or later, the <https://www.mathworks.com/help/signal/ref/findchangepts.html...

9 years ago | 0

Answered
what is happening actually in the following code?
*_‘why CN is assigned to k+1 and distances to k+2 ?’_* Apparently, whoever wrote the code designed the *|‘DAL’|* matrix to ...

9 years ago | 0

| accepted

Answered
When i was saving a file , i overwrited it accidentally on anther old file i wanted ,is there any way to get the old file?
If you have file backup enabled (see <https://www.mathworks.com/help/matlab/matlab_env/about-editor-debugger-preferences.html?se...

9 years ago | 0

Answered
How do I get the length of the first plateau in my looped data?
Your Question is lacking in some details. You probably have the Signal Processing Toolbox if you are doing biomedical signal pr...

9 years ago | 0

Answered
how do I Make two surfaces to equal dimensions
Your code needs a few minor tweaks to work. You essentially did everything correctly. (I will let you find the changes I made....

9 years ago | 0

Answered
setting up the ''options' in fmincon
If you run it with *_no_* stated options (using the defaults instead) what is the result? The *|NaN|* or *|Inf|* problem re...

9 years ago | 0

| accepted

Load more