Statistics
RANK
27
of 294.359
REPUTATION
7.547
CONTRIBUTIONS
72 Questions
2.626 Answers
ANSWER ACCEPTANCE
58.33%
VOTES RECEIVED
1.304
RANK
48 of 20.108
REPUTATION
16.276
AVERAGE RATING
4.70
CONTRIBUTIONS
54 Files
DOWNLOADS
178
ALL TIME DOWNLOADS
149563
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
How to write ASCII to byte file?
bytes = uint8([126, 129]) data = char(bytes); % Exceeds 7 bit ASCII Not sure about the encoding standards but this seems t...
34 minuten ago | 0
Delete a timer object in it's callback
I don't know, but I have programmed the same toys, my worlflow is like this close all; fig = figure; ax = axes('Parent', fig)...
ongeveer 14 uur ago | 0
How to open help doc in a Window rather than browser?
https://www.mathworks.com/help/install/ug/install-documentation-on-offline-machines.html
ongeveer 16 uur ago | 0
| accepted
transform linear inequality constraints into bound constraints for optimization solvers
No you cannot. It is well known that any generic linear constraints Aeq * x = beq A * x <= b lo <= x <= up is equivalent to...
1 dag ago | 0
Question
Intel ARC graphics device and MATLAB
Not really a question but I would like to report many issues withh App Designer and its stand alone version when using with Inte...
1 dag ago | 0 answers | 0
0
answersHow can I determine the angle between two vectors in MATLAB?
There is a good formula from Kahan, chap 12 of this Mindless paper, for given x and y two vectors of length(m) - in R^m, the ang...
6 dagen ago | 3
moving median with variable window
One way (for k not very large) x = 1:6 k = [2,3,4,5,3,2]; % Note: I change k(3) to 4 winmedian(x,k) function mx = winmedia...
11 dagen ago | 2
How to measure graph wave distance ?
It looks like you need to rotate the whole picture (red line + blue curve) to minus the slope of the red line. After rotation t...
11 dagen ago | 0
Quivers/streamlines not perpendicular to contours
Add the command axis equal Different aspect ratio in x and y can skew the perpendicularity visually.
11 dagen ago | 0
MATLAB Error - Local function name must be different from the script name.
Perhaps swap those two fitst lines in your code file function F = c_objective(x) global intcon f Q nmsi M S I ... Warning: u...
12 dagen ago | 1
| accepted
question about function handles in OO
Something extra must happen internally by the parse when you create function from method, but it only happens at the first level...
13 dagen ago | 0
| accepted
Question
Chasing what is wrong with 'dual-simplex-highs' in linprog
I try to see why 'dual-simplex-highs' algorithm fails and 'dual-simplex-legacy' works OK on this specific LP problem of size 46...
22 dagen ago | 2 answers | 2
2
answersBest computer specifications for fast Matlab numerical simulations/integrations?
The bench command in R2024a rates intel i9-12900 CPU on Windows 11 and Mac M2 best for ODE IMO the intel processor get hot easi...
23 dagen ago | 1
I substracted two 3D matrix and get a 2D matrix instead of 3D matrix, why?
You need to put 3 indexes in 3d array. If you put 2 it reshape your array to 2D. The correct command is probably dp=minus(p(1:...
29 dagen ago | 0
Scatteredinterpolant (linear) from symmetric data does not produce symmetric isolines
scatteredinterpolant all methods is based on triangulation of the data points. Even the data points are symmetric, the triangula...
3 maanden ago | 0
Intersection condition between two ellipses
Use FSOLVE to find numerical solution. Only xaimum one can be found c1 = [0; 5]; % circle center #1 c2 = [-5; 2]; % circle c...
3 maanden ago | 0
Intersection condition between two ellipses
Here is a solution for generic ellipses using FEX file here % Ti and ci define two ellipses E1 and E2 of the form % (x,y) st n...
3 maanden ago | 0
find a zero of a two-variable function
If you are not unlucky Trajectory = @(x) sum(x.^2,2)-34^2-1; % Test function, use use rather own X0 = [9.609 , 32.288]; %ini...
6 maanden ago | 0
call function name in the same function
This returns the name of the function being executed s = dbstack; funname = s(1).name; In recent MATLAB versions you can do i...
6 maanden ago | 1
| accepted
pinv operation in matlab
NOTE: This code is useful fonly or users who run version greater than R2021a and before R2024a, where pagesvd is supported by pa...
6 maanden ago | 0
How to do 3D matrix multiplication
A = rand(56,32,10); B = rand(32,32,10); C = pagemtimes(A,B); size(C)
6 maanden ago | 0
| accepted
Create an array of distinct objects of handle class
Why not simply calling the constructor as many time as you need arrDir = arrayfun(@(~)uilabel, 1:2); arrDir(1).Text = "textDir...
6 maanden ago | 0
| accepted
How to flip the x axis in a 3d plot?
Do set(gca,'XDir','reverse') one the surfc command is carried out s = peaks'; subplot(1,2,1) surfc(s) xlabel('x') subplot(1...
6 maanden ago | 0
| accepted
Extracting multiple signal segments without a for loop
As you like but this code is perhaps slower than the for-loop signal = rand(1000,1); segmentOnsetIndices = [50 120 550 600 750...
6 maanden ago | 1
| accepted
How to have individual numbers combine into a larger number
One way: UserIput = [1 2 3 10 11]; %% Coding X = polyval(UserIput, 16); X % Combine number clear UserIput % forget the ...
6 maanden ago | 0
Problem with solve() and "Empty sym: 0-by-1".
Your equations look illposed to me for three reasons* For a given j, LHS are known (4 x 1) vector Ax*Ax*B(:,j), let's call ...
6 maanden ago | 0
Efficient Vectorization of For Loop
Not tested but the sign reading tell me M = 2*B' * (A.*C);
6 maanden ago | 1
| accepted
uicontrol doesn't work in Matlab 2023a
The button position you give is way off push the button outside the universe. This happens with all MATLAB. figure;pauseButton=...
6 maanden ago | 0
| accepted
Finding the index k of square nilpotent matrix A
This modified version of binary search only use matrix multiplication and keep track of A^2^p, p = 0,1,2 ...The number of matrix...
6 maanden ago | 0
Finding the index k of square nilpotent matrix A
I modify your original code and now it seems working: function k = nilIndex(A) [n,n]=size(A); l=0; k=n; B =A^l; while k-l>...
6 maanden ago | 0