Answered
pass data from gui to another
This is answered extensively by the <https://www.mathworks.com/matlabcentral/answers/340087-pass-data-from-gui-to-another#commen...

9 years ago | 0

Answered
i got a error message 'Unable to meet integration tolerances without reducing the step size'
Instead of guessing what the problem is, you can check this. You do have the equations and even the function to evaluate it. ...

9 years ago | 0

| accepted

Answered
Two dependent switch on float in a loop.
Wow, the most frequently asked question again. Please read <https://www.mathworks.com/matlabcentral/answers/57444-faq-why-is-...

9 years ago | 1

Answered
Solving logical expressions with if statement
Then the 3rd and 4th column of |b| are not used? a = rand(10,2); b = [1 4 7 10]; Index = (a(:,1) >= b(1,1) & a(:,1...

9 years ago | 1

| accepted

Answered
Setting plot XAxis limits using a segment of time in the data
t1 = datenum('10 Apr 2017 16:00:00'); t2 = datenum('10 Apr 2017 18:20:00'); ax.xlim([t1, t2]); Does this work? If not...

9 years ago | 0

Answered
Homework for tomorrow please
The first line |[-5:0.2:5]| creates a vector but as long as it is not assigned, it is lost. Perhaps you mean |x = -5:0.2:5;| ? S...

9 years ago | 0

Answered
remove error message in command window
error message are very important. Because they should never be ignored, it is a bad idea to remove them. A much better idea is t...

9 years ago | 0

| accepted

Answered
Problem with displaying image in MATLAB GUI
You have to store the image after each operation in a specific location, e.g. in the |handles| struct or |UserData| of a GUI obj...

9 years ago | 0

Answered
Exponential and Binary Search Algorithm
Your code: function [ array, N, mini, target ] = binarySearch( array, N, mini, target) mid = ((bound + mini) / 2); Th...

9 years ago | 0

| accepted

Answered
How can I create dynamic variables A1, A2,...,A10 in a loop and save them?
See: <https://www.mathworks.com/matlabcentral/answers/57445-faq-how-can-i-create-variables-a1-a2-a10-in-a-loop>

9 years ago | 0

Answered
Which standard MATLAB functions do you shadow with your own version, and why?
I shadow different functions for different Matlab versions to either increase the speed or the compatibility in forward or backw...

9 years ago | 2

Answered
fspecial (disk)
We can assume, that you have read <https://www.mathworks.com/help/images/ref/fspecial.html the documentation> already: doc ...

9 years ago | 0

Answered
ODE45: only save the solution at final time
You can request the output of 3 time steps: tspan = [ti, (ti+tf) / 2, tf]; Then ignore the first two outputs.

9 years ago | 0

Answered
how can i save function file to run programme? kindly help me out
The question is not clear. You can save this file by saving this file on the disk. So what is the problem? Do you mean that the ...

9 years ago | 0

Answered
Set numbers behind the comma in text edit view on gui matlab?
set(handles.edit1, 'String', sprintf('%.4f', pi))

9 years ago | 0

Answered
Is vectorization preserve scaling of runtime?
Even with vectorization the runtime will depend on the number of calculations. Sometimes vectorized code requires large temporar...

9 years ago | 0

| accepted

Answered
Checking if an array element is larger than the following elements
This is not hard. Please feel encouraged to try it by your onw. A = [1,5,6,4,12]; X = A(length(A)); for k = length(...

9 years ago | 0

| accepted

Answered
Sync data with two sync points
At first determine the factor between the time steps: a1 = find(a(:, 2) == 1); a2 = find(a(:, 2) == 2); b1 = find(b(:...

9 years ago | 0

| accepted

Answered
Preserve spaces when using fprintf with strcat to show variables, spaces and strings on screen to user
C = strcat('HURRAH!! File',{''},B,' does exist.\n') This creates a cell string. Then |fprintf| must fail, because it accept...

9 years ago | 1

| accepted

Answered
Solving simultaneous ODEs where output(1) and output(2) are coupled
This would be unusual: dydt(1) = 2*y(1); dydt(2) = 3*dydt(3); dydt(3) = 3*dydt(2) + dydt(1); Are you sure that you...

9 years ago | 0

Answered
is there fast quick select algorithn in matlab ??
Use <https://www.mathworks.com/help/matlab/ref/movmedian.html>.

9 years ago | 2

Answered
I need reset the 'New Time' so that it starts at 0 when 'New Velocity' = anything other then 0
index = find(yAngVel, 1); NewVelocity = yAngVel(index:end); NewTime = xTime(index:end) - xTime(index);

9 years ago | 0

| accepted

Answered
How to divide an area having multiple random points and work on each part separately?
Perhaps something like this simple loops: a = rand(2,100)*100; grid = 0:33.33333:100; Result = cell(numel(grid) - ...

9 years ago | 0

| accepted

Answered
Hi, getting 'not enough input arguements' when line of code but not when I enter manually at command line
If you function looks like this: function Test(MarketHolidayssince1990) MktHols = MarketHolidayssince1990{:,1} and yo...

9 years ago | 0

Answered
How to display in GUI
figure; H = uicontrol('Style', 'edit', 'Units', 'normalized', 'Position', [0.01, 0.01, 0.98, 0.1]); an = [ -1/pi, 0, 1/(...

9 years ago | 0

Answered
Passing names of functions to another function with parameters as input in MATLAB
You could use a cell of function handles: run_experiment(Opts, Fcns) for iFcn = 1:numel(Fcns) Data = Fcns{iFcn}(Opt...

9 years ago | 2

Answered
Anyone know what I am getting this error?
Rmax=zeroes(L,1) assigns a Lx1 Matrix to RMax, then I try to store a single element vector in Rmax(i) Correct. This is the...

9 years ago | 0

| accepted

Answered
How can I vectorize this code ?
For experiments: function test m = 100; n = 100; k = 1200; l = 1200; p = k - m + 1; q = l - n + 1; ...

9 years ago | 0

Answered
How to read video on matlab
The error message is clear: You did not specifiy an existing file name. This is not a problem of Matlab's import.

9 years ago | 0

Answered
How can i form a 3d matrix from a 2d matrix
Perhaps you mean: xcs = repmat(reshape(WCS, 1, 19, 1339), 1176, 1, 1); But this 3D array would consist of 1176 identical...

9 years ago | 0

Load more