Réponse apportée
Help with Plotting the Envelope of a Scatter Plot in MATLAB
load xy x=x(:); y=y(:); [G,yg]=findgroups(y); xmin=splitapply(@min,x,G); xmax=splitapply(@max,x,G); [yg,is]=sort(yg...

environ un an il y a | 0

| A accepté

Réponse apportée
How we can calculculate the MTF from PSF?
MTF=abs(fft2(PSF)); MTF=fftshift(MTF/MTF(1));

environ un an il y a | 0

Réponse apportée
How can i classify shapes on this image as square, rectangle and circle?
See here, https://www.mathworks.com/matlabcentral/answers/116793-how-to-classify-shapes-of-this-image-as-square-rectangle-trian...

environ un an il y a | 0

Réponse apportée
How to classify shapes of this image as square, rectangle, triangle and circle?
Fit a polyshape to each of the objects by downloading bwlpolyshape() https://www.mathworks.com/matlabcentral/fileexchange/18142...

environ un an il y a | 0

Réponse apportée
Combining one matrix into another that are of different sizes
n = 36; V = kron( eye(2) , [ 0 1 0; -1 0 0; 0 0 1]) ; V(end,n)=0; K=numel(1:3:32); Tx=cell(1,1,K); Tx{1}=V; for k = 2:...

environ un an il y a | 1

Réponse apportée
Problem with mesh grid and intersection of two surfaces
Perhaps as follows: tol = 1e-8; pas = 0.001; [N11, N31] = meshgrid(0:pas:0.01); N11=N11(:); N31=N31(:); %% Polynôme 1 A...

environ un an il y a | 0

Réponse apportée
Switching values around in a matrix
A = [2 5; 9 7; 10 2; 3 2; 1 9]; B([1:2:10,2:2:10],1)=A(:)

environ un an il y a | 0

| A accepté

Réponse apportée
problem using trisurf in a gui
The "hold on" command doesn't prevent it from starting afresh every time. Use, hold(ax2,'on')

environ un an il y a | 0

| A accepté

Réponse apportée
can i change how load function operates?
You cannot, unfortunately.

environ un an il y a | 0

Réponse apportée
Focus doesn't switch from editor to command window when runnning m file R2025A
Use inputdlg instead.

environ un an il y a | 0

Réponse apportée
Running into problems using the latex interpreter in strings
There are two issues, mainly. (1) You should set the Interpreter first (before the String), to avoid the warnings (2) Because ...

environ un an il y a | 0

| A accepté

Réponse apportée
Undock the variables window
Yes, you can undock the Variables Editor, and pretty much everything else.

environ un an il y a | 0

Réponse apportée
Some enumeration members are unrecognized
I'm not encountering any problems in 2024b. Perhaps you forget that you implemented a disp method, which displays those members ...

environ un an il y a | 0

| A accepté

Réponse apportée
How to avoid redefining optimoptions in Simulink for real-time nonlinear optimization with fmincon (SQP)?
You can use global variables (but with care). function y = fcn(u) global lb ub options y = fminbnd(@(x) f1(x,u),lb,ub,...

environ un an il y a | 0

Réponse apportée
Anonymous function handle incosistence problem with Fourier functions
Aside from what Stephen mentions, (1) the time and frequency axes need to have a common origin at the center of the array. (2...

environ un an il y a | 0

Réponse apportée
How to work out trigonometric identities symbolically?
There is no unique expansion of such an expression. You would have to go the other way. syms w v t simplify( 0.5 * (cos(w*t ...

environ un an il y a | 0

Réponse apportée
Issue with 2D Planar Area Calculation Using surf
You may havee to regrid the data so that it is uniformly spaced and also scale the area calculation by the pixel area: load max...

environ un an il y a | 0

Réponse apportée
I want to clip a contour output to the interior of a closed polygon
Since you have extracted the contour line coordinate data and modified them, you could just replot them as line plots instead of...

environ un an il y a | 0

| A accepté

Réponse apportée
Details pane missing in 2025a
Yes, it's been removed. You can still preview the file by right-clicking on it and selecting Preview. I would be interested to k...

environ un an il y a | 0

| A accepté

Réponse apportée
Plotting Set of Inequalities
Your inequalities can be re-arranged as linear inequalities, and then plott...

environ un an il y a | 0

Réponse apportée
Function to copy to clickboard in App Designer?
Implement a WindowButtonDownFcn callback for the UIFigure canvas, function CanvasButtonDown(app, event) clickedC...

environ un an il y a | 0

| A accepté

Réponse apportée
Please help me, I want to graph this attached simple relation
The following is deliberately not exactly what you asked for, but illustrates one possible approach. [a0,a1,c1,c2,c3,c4,lambda...

environ un an il y a | 1

| A accepté

Réponse apportée
fft function seemingly not evaluating correctly
Pretty close. There are several issues with how you set up your axes, both in the original domain and the Fourier domain. For on...

environ un an il y a | 0

Réponse apportée
Modulo with expression not the same as modulo with value
Because mod(1,z) is a discontinuous function of z at 0.1, fplot(@(z) mod(1,z),[0,0.2])

environ un an il y a | 0

| A accepté

Réponse apportée
Displaying a 3D object with the nearest 2 quadrants to the viewer cut out.
Couldn't you just use the volume viewer app https://www.mathworks.com/help/images/explore-3-d-volumetric-data-with-volume-viewe...

environ un an il y a | 0

| A accepté

Réponse apportée
Pass parameters to arbitrarily deep functions in a parfor loop (write once, read multiple)
I recommend that you go through the effort of revising all your function signatures to accept an additional argument for the par...

environ un an il y a | 1

Réponse apportée
App Designer: Push-button and keep certain variables in workspace
Have the function store the data in a property of the app. https://www.mathworks.com/help/matlab/creating_guis/manage-propertie...

environ un an il y a | 0

Réponse apportée
I am trying to generate a plot for the 3x+1 problem for the seed 10^310 but i am unable to get the plot? Why
It's because 1e309 is too large for double float math to handle. The largest integer that can be expressed in double float preci...

environ un an il y a | 1

Réponse apportée
Wierd wiggle in plot of symbolic expression
There appears to be a mistake in your expression for cutoff(). Also, using floor(t) for the upper limit of the symsum makes it h...

environ un an il y a | 1

Réponse apportée
Wierd wiggle in plot of symbolic expression
Seems like a lot of unnecessary symbolic math gymnastics for such a simple function. IB0=@(t) min(t,1); fplot(IB0,[0,9], 'Li...

environ un an il y a | 2

Charger plus