Answered
filt vs. filtfilt very different output
This is an old question, but this might help others: * cheby1 highpass applied to input using FILTFILT looks correct, using F...

9 years ago | 1

Answered
program for checking whether the root satisfies an equation
Or without the Symbolic Toolbox fcn = @(x) x .^ 2 - 7 * x + 10; x = [1, 2, 3, 4, 5]; f_x = fcn(x) isroot = abs(f...

9 years ago | 1

| accepted

Answered
Best way to filter out frequencies in real time (frame by frame) analysis ?
And for clarity a code example (UNTESTED CODE): signal = rand(1, 1000); [b, a] = butter(3, 0.5); z = ze...

9 years ago | 1

Answered
How can I set a GUI edit text to clear the first time text is entered?
Did you remember to store the modified handles struct? function edit1_KeyPressFcn(...) %... if handles.FirstEdit == true...

9 years ago | 1

| accepted

Answered
how to get rid of the following error
You have redefined a function by an array. Maybe this is "gamma", "log2", "p_fix" or "symsum". Without seeing the complete code,...

9 years ago | 0

Answered
Matlab asks for licence file location when installing via mathworks account
Did you take the time to ask an internet search engine already or search in the forum? You will find: * <https://www.mathwork...

9 years ago | 0

Answered
Update plot based on two sliders
function [] = slider_plot() S.fh = figure('units','pixels', 'position',[300 300 300 300],... 'menubar','no...

9 years ago | 1

Answered
i am getting an error Undefined operator '^' for input arguments of type 'matlab.ui.control.UIControl'. Error in sdpc>pushbutton1_Callback (line 159) handles.rp=(handles.h^2)/handles.mu/(1+handles.e); %in km i dont know why ?Request for help..!
The inflationary usage of the struct |handles| is not valid in your code. As the error message tells clearly already, you cannot...

9 years ago | 0

| accepted

Answered
Failure to initiate Matlab graphics
The error message looks clear: Unable to read MAT-file C:\Users\sciencefordays\AppData\Roaming\MathWorks\MATLAB\R2017b\mat...

9 years ago | 0

Answered
Tell me the Activation Code or License Number
Seriously? You did not even mention what you want to activate. A license number is a personal property and it belongs to your ac...

9 years ago | 0

Answered
Need help to stop the ode when v(2) is zero using ode events. I have tried in so many ways but couldn't get result.
But your works sufficiently already. Insert this test: [t,v] = ode45(@(t,v)rhs(t,v,Nsquare), zspan, v0,options); if t(en...

9 years ago | 0

| accepted

Answered
How to create rgb image uint8
Using your |image| array: imageUINT8 = uint8(image * 255); Or directly: imageUINT8 = zeros(100,8,3, 'uint8'); ...

9 years ago | 0

| accepted

Answered
Please any one can help to share a install key of matlab 2014a
You get your file installation keys from your MathWorks account page. If you take some seconds to search in the forum or ask an ...

9 years ago | 0

Answered
C libraries-LAPACK MEPL EIGEN
Is there a LAPACK or CBLAS function that can be used to normalise an m by n matrix ? A=abs(B/max(B)); %B is m by n matrix ...

9 years ago | 0

| accepted

Answered
how to use ode45 and another function like ode23 or any function to solve one system?
The question is old: 14 Jun 2016, but maybe other readers will find it. This cannot work. The system of ODEs must be solves s...

9 years ago | 0

Answered
reshaping a (R*8) matrix to R vector column
The first idea would be: A = [1,2,3,4; ... 5,6,7,8; ... 9,10,11,12]; B = A * [1000; 100; 10; 1] This ...

9 years ago | 0

Answered
Is it possible to compile a MATLAB script to an exe or a C-sharp or C++ code?
You can create an exe file by using the Matlab Compiler, see <https://www.mathworks.com/products/compiler.html>. If you want C++...

9 years ago | 0

Answered
How to enhance contrast on a grayscale image?
If you mean "histeq", which details is not clear after reading the documentation: <https://www.mathworks.com/help/images/ref/his...

9 years ago | 0

Answered
what is happening actually in the following code?
The documentation explains the used commands exhaustively. Did you read it? [Distance, CN] = min(DAL(i,1:K)); ...

9 years ago | 1

Answered
Is it possible to collect input parameters with a GUI window?
You can create such a GUI using GUIDE or programmatically. For the latter see <https://www.mathworks.com/matlabcentral/fileexcha...

9 years ago | 0

Answered
Is it possible to join pdf files with MATLAB?
What are the inputs? Existing PDF files or a set of figures? For the latter, you can print to a PS file with the '-append' flag ...

9 years ago | 1

Answered
How to select a point with coordinates with a GUI?
* Import the image with |imread| * Display it with |image|, |imagesc| or |imshow|. These commands scale the image to the availa...

9 years ago | 2

| accepted

Answered
row indices of an array which is a subset of another array
Maybe your mean: b = cat(2, [ 7;6;5;4;4;3;2;1;20;19;18;17;16;20;21;22;23], ... [30;29;28;27;8;9;10;11;8;12;13...

9 years ago | 0

| accepted

Answered
How can I turn a vector output into 3 separate scalar outputs?
How do I change this so that it will output three separate answers. It does reply 3 separate answers already. Just call it w...

9 years ago | 0

Answered
how to convert a numeric matrix to cell array without changing its property?
You can't. A cell array is by definition a cell array, while only numerical arrays are numerical arrays. As per the svm docu...

9 years ago | 0

Answered
How to decrypt a pcode?
No, there is no decoding method for P-coded functions. You can use the debugger to step through the code line by line, inspec...

9 years ago | 2

| accepted

Answered
Why does runtime decrease the more times I execute a command?
The observed effect is random. To get real timings use either |timeit| or at least a loop with a large number of calls to reduce...

9 years ago | 0

Answered
How to use clearvars in matlab6.5
It is a bad programming practice to control the existence of variables by |clear|. Better use functions to keep the workspaces c...

9 years ago | 0

| accepted

Answered
why "The boundary condition function BCFUN should return a column vector of length 4" error message is came?
Your |Al| is a vector: Al1 = 0:.01:.1; Al = Al1'; Then inside |meltbc|: function res = meltbc(ya,yb) globa...

9 years ago | 0

Answered
how to write this equation on MATLAB ?
You need tow |for| loops. Cora = 0; for k = 1:Lm c1 = factorial(Lm-1) / (m / gamma)^k * exp(m / gamma) * ... ...

9 years ago | 1

| accepted

Load more