Answered
Sensitivity analysis of an ODE
An analysis of the sensitivity can be achieve by two methods: 1. Vary the initial values y0 and/or parameters p by a "small" am...

8 years ago | 0

| accepted

Answered
Save pixel color values of all the pixels of an image
Some hints: % Use meaningful names for variables. "[a b]" is confusing: [fileName, filePath] = uigetfile({'*.jpg';'*.png';'*.b...

8 years ago | 0

| accepted

Answered
Sorting numbers in the list without using sort command
You are near already. Instead of removing all occurrences of the current minimal element, it is easier to use both outputs of th...

8 years ago | 5

Answered
How to remove the noise from the wav file?
One channel contains some noise and the other not? So all you want to do is to remove one channel, such that you have a mono wav...

8 years ago | 0

| accepted

Answered
Does anybody know how to put this sign in matlab plot text?
If I ask an internet search engine, I get these linke immediately: https://www.mathworks.com/matlabcentral/fileexchange/38716-c...

8 years ago | 1

| accepted

Answered
Solving a system of ODE over different intervals (with different conditions on parameters)
Avoid using globals to provide parameters. See <Answers: Anonymous for params> You can integerate over different time intervals...

8 years ago | 1

| accepted

Answered
Import specific type of text file
Str = fileread(FileName); % Mask the HTML tags: indI = strfind(Str, '<'); indF = strfind(Str, '>'); M = zeros(size(Str...

8 years ago | 1

| accepted

Answered
how to solve Error Output argument "variable_name" (and maybe others) not assigned during call to "function_name".
If length(dividingLines) - 1 equals 0, the loop is not entered and char_out is not created. Use the debugger to find out, what'...

8 years ago | 0

Answered
conditional logic inside conditional logic
if isfield(hund.A) This will not work. I guess you mean: if isfield(hund, 'A') Then this works: if isfield(hund, 'A') && hun...

8 years ago | 1

| accepted

Answered
My program quits when I run a callback function in GUI.
This line: if uicontrol('Style','pushbutton','Callback',@pushbutton2_Callback)==1 will not enter the code in the if block. uic...

8 years ago | 1

Answered
How to remove trailing whitespace on save
No, there is no such builtin tool. You can use a simple tool like this to cleanup your code: !!!!!!! TEST THIS EXHAUSTUIVELY BE...

8 years ago | 1

| accepted

Answered
How can i exactly click on a point that has drawed on a plot using ginput ?
Considering my comment, my answer is: You can't. You would need a massive zooming to try to do so. Remember, that [1.0000000000...

8 years ago | 0

| accepted

Answered
Subscripted assignment dimension mismatch.
This is the answer concerning your comment https://www.mathworks.com/matlabcentral/answers/439201-subscripted-assignment-dimensi...

8 years ago | 0

Answered
How to create multiple matrixes from a single for loop?
With some guessing: nCoor = size(startingcoordinates, 1); % Safer than LENGTH()!!! Trajectory = cell(1, nCoor); % Plotting ...

8 years ago | 0

| accepted

Answered
How can I determine which roots are closest to the unit circle?
x = [ -2.446362435057714 - 0.000000000000002i, ... -0.408770174717145 - 0.000000000000000i, ... 0.862312857431274 - 0.52958...

8 years ago | 1

| accepted

Answered
ValueChanged event not fired on uieditfield when setting property Value
You can write a wrapper for setting the value programmatically, which calls the callback manually: function SetMyValue(objectH,...

8 years ago | 1

Answered
How to run guide gui in a loop
Some bold guesses: files(i) is a struct and not a string. Try this: filename = fullfile(files(i).folder, files(i).name); set...

8 years ago | 0

Answered
How to find the updated positions of radio buttons when the gui window is set to proportional (resizable)
The question is not clear yet: How did you implement the "connections"? If this object has normalized units also, it should scal...

8 years ago | 0

Answered
GUI panel suddenly dissapear.
Using setappdata in another figure (Master is another figure, isn't it?) does not influence the visibility of GUI elements. This...

8 years ago | 0

Answered
Best practice - callback override / drag graphic elements...
The code looks fine. I'd avoid gca, but use the 'Parent' property directly: function move(src,event) pt = get(src.Pare...

8 years ago | 0

| accepted

Answered
Explode cell that are into another cell
Start with a pre-allocation: Len = cellfun('prodofsize', data); Raw = cell(sum(Len), 6); c = 0; for ind = 1:numel(data) ...

8 years ago | 1

| accepted

Answered
How to save contents of uipanel
"using subplots by switching to a uipanel in my gui from an axes" - I do not understand what this means. "save the figure displ...

8 years ago | 0

| accepted

Answered
passing varibales to mex
mxCreateNumericArray creates a new variable. Overwriting the pointer to the reserved memory by mxSetPr will leak the memory and ...

8 years ago | 1

Answered
I want to write daily datum into xls file without overwriting
To append data to an XLS and XLSX file, you have to import the existing data at first to find out, which rows is used already. ...

8 years ago | 0

| accepted

Answered
How do i solve this error: Undefined operator '>' for input arguments of type 'timeseries'.
The only places, where ">" occurs are: phis>0, phis>pi, d>0 When I run your code, I get the error message, that xs is undefine...

8 years ago | 0

Answered
Loading a certain column from an ascii file to a list box in gui matlab
It is a bad idea to store variables globally: col=getappdata(0,'edit16') If you open several instances of the GUI, they overwr...

8 years ago | 0

| accepted

Answered
How to check from a Matlab script if there is a Parallel computing toolbox installed?
A search in the forum will show this answer: https://www.mathworks.com/matlabcentral/answers/58228-am-i-running-in-parallel-best...

8 years ago | 0

Answered
How does MATLAB find Fibonacci for large n extremely fast (27 msecs for 1 millionth)
See the formula of Moivre-Binet: s = sqrt(5); F = round(((0.5 * (1+s))^n - (0.5 * (1 - s))^n) / s); % Alternatively: F = cei...

8 years ago | 2

Answered
How to make a symmetric matrix
What about using the code you have posted already? B = [1 2 3 8 1 6 ; 2 1 0 3 5 7; 3 0 1 4 9 2; 8 3 4 1 0 3 ; 1 5 9 0 1 2; 6 7 ...

8 years ago | 1

Load more