回答済み
App Designer-Unrecognized variables
Try this: % Button pushed function: RUNButton function RunSimu(app, event) % Get all variable names in the base workspace va...

4ヶ月 前 | 0

| 採用済み

回答済み
MATLAB eig function giving different eigenvectors on different computers?
"In both cases the computation A*V - V*D yields a matrix with entries on the order of 1e-14, so all is well numerically in both ...

4ヶ月 前 | 1

| 採用済み

回答済み
How to rewrite this high dimensional matrix calculation
Fully vectorized Y = reshape(X, [], 1, C); Z = reshape(Y, 1, [], C)-Y; Z = reshape(Z, [], C); Z(1:A*B+1:end,:) = Y; Z = res...

4ヶ月 前 | 1

| 採用済み

回答済み
Is genetic algorithm far from upper bound ?
Use optimization with constraints to fix the upper bound You can provide the upper bound in ga as well

4ヶ月 前 | 0

回答済み
Interpolate and plot a surface in a rotated coordinated system
Try this and see if it's OK for you load('measurement_data.mat'); % fit a plane through the data and plot xyz = [x y z]; [...

4ヶ月 前 | 0

| 採用済み

回答済み
Check if file directory exists, else create it
mkdir(FullDirectory) rather than mkdir FullDirectory

4ヶ月 前 | 0

| 採用済み

回答済み
scale/normalize parameter vector for optimization
An interesting idea of generic "preconditioning" of Bspline approximmation is working with Dual Bernstein basis, decribe in Lu p...

4ヶ月 前 | 0

回答済み
scale/normalize parameter vector for optimization
1. In machine learning literature, I often encounter [0,1] scaling as a common technique. Would this approach be suitable for m...

5ヶ月 前 | 0

| 採用済み

回答済み
Calculation of the moving mean for the first items
From movmean doc "M = movmean(A,k) returns an array of local k-point mean values, where each mean is calculated over a sliding ...

5ヶ月 前 | 0

回答済み
Intersection of Discretized Curves
Use this file exchange https://www.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections This code is robust, it d...

5ヶ月 前 | 1

回答済み
How can I run code just once, for multiple intervals of numbers?
Use for loop

5ヶ月 前 | 0

| 採用済み

回答済み
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...

5ヶ月 前 | 2

回答済み
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)...

5ヶ月 前 | 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

5ヶ月 前 | 2

| 採用済み

回答済み
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...

5ヶ月 前 | 0

| 採用済み

質問


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...

5ヶ月 前 | 1 件の回答 | 0

1

回答

回答済み
How 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...

5ヶ月 前 | 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...

5ヶ月 前 | 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...

5ヶ月 前 | 0

回答済み
Quivers/streamlines not perpendicular to contours
Add the command axis equal Different aspect ratio in x and y can skew the perpendicularity visually.

5ヶ月 前 | 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...

5ヶ月 前 | 1

| 採用済み

回答済み
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...

5ヶ月 前 | 0

| 採用済み

質問


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...

5ヶ月 前 | 3 件の回答 | 2

3

回答

回答済み
Best 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...

5ヶ月 前 | 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:...

6ヶ月 前 | 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...

7ヶ月 前 | 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...

8ヶ月 前 | 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...

8ヶ月 前 | 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...

10ヶ月 前 | 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...

10ヶ月 前 | 1

| 採用済み

さらに読み込む