Answered
Sorting Data in MAtrix1 referencing matrix2
I'm not sure if I understand the question correctly. This code searches for occurrences of the elements of A in B(:, 1) and crea...

9 years ago | 1

Answered
Get handle of clicked element in GUI
Define a callback for the axes during the creation: axes('ButtonDownFcn', @AxesCallback); ... function AxesCallback...

9 years ago | 0

Answered
If round(1.5) is given the answer is "2".but when round([0:0.3:2]) the answer is "0 0 1 1 1 1 2"
Hm, this is very strange: numel(0:0.3:3) % >> 11 How could it come that you get 7 outputs only? 0 0 1 1 1 1 2 ...

9 years ago | 1

Answered
Concatenate integer to variable name
Result = cell(230, 8, 3); for j= 1:230 for i=1:8 for lvl = 3:5 Result{j, i, lvl - 2} = wavedec(Ext{j...

9 years ago | 1

| accepted

Answered
how to save variables to an array using a for loop?
As suggested above: The best idea is *not* to create the variables in this way at all. Hiding an index in the name of the variab...

9 years ago | 0

Answered
How to run the animation of double pendulum chaotic nature?
Compare the results with the ODE45 integrator: [T, Y] = ode45(F, [0, tmax], s(:, 1).'); figure; plot(T, Y); figure...

9 years ago | 1

| accepted

Answered
Detection of large amplitudes
You can determine the envelope at first: axes('NextPlot', 'add'); plot(b, 'b'); plot(envelope(b, 50, 'peak'), 'r'); ...

9 years ago | 0

Answered
How to plot 17 subplots?
This adds a new row only if required: N = 17; figure; nS = sqrt(N); nCol = ceil(nS); nRow = nCol - (nCol * nC...

9 years ago | 5

Answered
How to find inverse of large size matrix.?
The explicite calculation of inverse is seldom necessary. Are you really sure you need it? x = rand(800); tic; y = in...

9 years ago | 0

Answered
Difference between 32-bit and 64-bit Matlab 2011b versions?
The most obvious answer is, that the 32 bit version is compiled for 32 bit systems, and the 64 bit version for 64 bit systems. ...

9 years ago | 0

Answered
Why do certain line markers show up faded when saving high resolution images using print?
Export it as eps: print(gcf, 'test.ps', '-deps2') Including this in Word works perfectly - only the preview on the scree...

9 years ago | 0

Answered
Working legacy issues, I need a version to revision cross reference
Do you mean the relation: Version Release name Release number Matlab 7.2 R2006a 15 MATLAB 7.1...

9 years ago | 1

| accepted

Answered
Is this a bug??
No, the show code is *not* equivalent to: a = b a == b The indexing is modified: a(find(a == 1)) = b Now |a| ...

9 years ago | 1

Answered
Choosing which nested for loop to parfor
Perhaps I misunderstand your question. A guess: As far as I understand, you have: for i1 = 1:N1 for i2 = 1:N2 ...

9 years ago | 0

| accepted

Answered
Index exceeds matrix dimensions (Thermal 1d model)
You define T(i+1) = TN - (TN-T0)*exp(-z(i+1)/0.06); but access T(i+1, n+1)

9 years ago | 0

| accepted

Answered
folder browser integrate in a gui
This does neither work by a listbox or an axes. You find several methods in the FileExchange: * <https://www.mathworks.com...

9 years ago | 1

| accepted

Answered
how to generate 10 random numbers each between 1 to 100 then 101 to 200 etc. till 1000?
Perhaps: X = randi([0, 99], 10, 10) + (1:100:1000); % requires Matlab >= 2016b With older versions: X = bsxfun(@pl...

9 years ago | 1

Answered
How to transpose a matrix
With some guessing: A = [1 8; ... 1 5; ... 1 4; ... 2 6; ... 2 7; ... 2 2; ... ...

9 years ago | 0

Answered
{} and () brackets - creating array in for loop
It depends on how the variable is defined before the loop: clear('M'); % Now M is not defined and the first access determi...

9 years ago | 0

Answered
fopen problem using updated software
As the documentation and the error message explains, the standard calling is: fid = fopen(FileName, 'w') Here fid is a n...

9 years ago | 0

Answered
How to speed up an animation plot?
Use the profiler to find the bottleneck of the code. It is not worth to improve a part, which takes 1% of the runtime, because a...

9 years ago | 1

| accepted

Answered
How can I find distances to the chosen point from all the other points ( Euclidean distance ) ?
Hm, yes. Why not? X = rand(1000, 3); Pick = 17; Point = X(Pick, :); Dist = sqrt(sum((X - Point) .^ 2, 2)); ...

9 years ago | 0

Answered
Please I want to modify that code for run length to work on gray scale image
There is no Run Length defined for matrices, but only for vectors. Even your code converts the input image to a vector at first ...

9 years ago | 1

| accepted

Answered
[Help me,please] How to crop image, remove background of currency ?
Do you have the Image Processing Toolbox and are you allowed to use it? You need a threshold at first to create a BW image. What...

9 years ago | 1

Answered
issue with distance calculation ?
|N| is the length of the 2nd dimension of |data|: [m N]= size (data); Then you coose two elements from 1:N: ...

9 years ago | 0

Answered
How to Create RT clock in my own GUI?
If |handles| is unknown in the callback, provide it as input: set(handles.time_caption,'String',datestr(now,13)) tmr = t...

9 years ago | 0

| accepted

Answered
How to integrate an acceleration/time curve?
|cumtrapz| is the solution and it applies to all inputs. The problem is, that your data look noisy. It looks like 3 sine waves r...

9 years ago | 0

Answered
how to store data based on range?
Assuming that the time is stored in the 1st column and the value in the 2nd: Index = Num(:, 1) > 10 & Num(:, 1) < 100; T...

9 years ago | 0

| accepted

Answered
Error while using syms in matlab
Which is the current folder? The parent folder of class.m, which contains the documentation only? Then change the current direct...

9 years ago | 0

| accepted

Load more