Question


Constraining solution space of estimateGeometricTransform()
The last time I used estimateGeometricTransform() I had to manually deal with solutions that were of no interest. E.g. I wouldn'...

environ 2 ans il y a | 1 réponse | 0

0

réponse

Réponse apportée
Text skew detection and correction in image
In general, pattern maching is used. See estimateGeometricTransform() But the result may not be exactly the angle it's rotated ...

environ 2 ans il y a | 0

Question


Is there a callback for a pushbutton pressed-and-held state in app designer?
I can't find an equivalent of slider's valuechanging function for a pushbutton. Something that may execute repeatedly when a pus...

environ 2 ans il y a | 1 réponse | 0

0

réponse

Réponse apportée
Determine -3db gain on Freq- gain plot
interp1() outputs linearly interpolated values that you are asking for. if Gain_3db is a scalar value the output is a scalar. Th...

environ 2 ans il y a | 0

Réponse apportée
How do I solve differential that is not w.r.t time in simulink?
Can we consider dX/dV as (dX/dt) / (dV/dt) to set up a regular simulink model. Regards

environ 2 ans il y a | 0

| A accepté

Réponse apportée
How to fit custom equation in a linear regression?
Presuming you are trying to estimate a1, a2, a3 you can just to a lmdivide. You will need data for x & y with atleast 3 to solve...

environ 2 ans il y a | 0

Réponse apportée
Generate synthetic images with controlled variation using the few sample images.
If by defect you mean the circular feature on the left of the image, you can check its attributes (pixel colours) and copy them ...

environ 2 ans il y a | 0

Réponse apportée
The stem plot is not shown in the figure
I don't think there is markersize attribute in stem(). Either do stem(n,xn) or replace stem() with plot()

environ 2 ans il y a | 0

Réponse apportée
Finding the max value in a column every 601 rows of excel file
If you already have the one big column, it's easy to reshape it into a matrix of 600xN (N=100*313?) >> M = reshape(BigColumMatr...

environ 2 ans il y a | 0

Réponse apportée
Simulink: MATLAB Function Doesn't Recognise Variables
Of course it doesn't. That is intended behaviour. Functions have their own workspace which is distinct from base workspace (or m...

environ 2 ans il y a | 0

| A accepté

Question


Is MQTT functionality implemented for 3rd party applications?
Is MQTT functionality designed to work only with Thingspeak or any 3rd party application in general? Which toolbox(es) is the fu...

environ 2 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Concatenate correlation matrices/tables across subjects to one 3D matrix
cat(3,m1,m2,m3,m4...) concatenates m1,m2,... along third dimension.

environ 2 ans il y a | 0

| A accepté

Réponse apportée
LSTM in App Designer: predictAndUpdateState Error
The error doens't necessarily mean it cannot work with double type parameters. I may also be that it cannot find the function. M...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Removing outliers from Control System response?
Check this out. https://in.mathworks.com/matlabcentral/fileexchange/101475-peirce-s-criterion-for-outlier-rejection

environ 2 ans il y a | 0

Réponse apportée
How to make a Gui checkbox work
In the toggleHistory callback, use an if condition to check the value of the checkbox. if sender.Value == 1 disp showHisto...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
How to use the zplane command in app designer
I dont think zplane() has a syntax to pass in handle to target axes. Instead plot zeros and poles separately using plot function...

environ 2 ans il y a | 0

| A accepté

Question


2022b for apple M1
A 2022b beta trial of Matlab running natively on M1 macs was released for public and it closed some time in August. 2022b is no...

environ 2 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Display variable outside ODE45 function
Since Rx and Ry are only time-dependent, why no do plot(time,cos(time), time,sin(2*time), time,cos(time)+sin(2*time))

plus de 2 ans il y a | 0

Réponse apportée
How to switch uitab using commands?
Use SelectedTab property of uitabgroup. E.g. f = figure; tabgp = uitabgroup(f,'Position',[.05 .05 .3 .8]); tabA = uitab(tab...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Asking the user to enter the extension of the files and load them in workspace
Not sure what you mean by "load similar files". To "load" or import file(s) you first need to specify the file(s). If you want u...

plus de 2 ans il y a | 1

Réponse apportée
Is MATLAB supported on Apple Silicon Macs?
Matlab for AppleSilicon beta is out for testing. https://in.mathworks.com/support/apple-silicon-r2022a-beta.html

plus de 2 ans il y a | 1

Question


ppval and polyval giving different results
I created a piecewise polynomial using mkpp. But when I evaluate a set of points I get incorrect results using ppval, although p...

plus de 2 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
app designer dynamic button number
Yes, in at least a couple of ways. First is to use the uicontrol() in the selectionchanged callback of DropConcentration to crea...

presque 3 ans il y a | 0

| A accepté

Question


Unable to run a deployed file in linux: error while loading shared libraries: libmwlaunchermain.so
I have created a deployable XYZ but unable to launch it even after configuring LD_LIBRARY_PATH. I keep getting the error error...

presque 3 ans il y a | 1 réponse | 0

0

réponse

Réponse apportée
surf plot of f(x,y). With gridlines, but more sparse than default
s=surf(x,y,z) Now use s.Parent.XTick and set it to a vector. E.g. s.Parent.XTick = 0:2:10; will make the X-grid 2units with...

presque 3 ans il y a | 0

Réponse apportée
Create single array from multiple arrays in struct
Presuming the error you got is "Dimensions of arrays being concatenated are not consistent.", all data in column vectors may be ...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
how to use "for" loop to save variables to an array?
Of course, it will show the last result only since you are overwriting the areaone variable in every iteration of the loop. You ...

presque 3 ans il y a | 0

Réponse apportée
Save figure name as string
saveas(hfig,[directoryPath, str, '.jpeg']) directoryPath is the string with ending in fileseperator / or \ depending on your OS...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Is MATLAB supported on Apple Silicon Macs?
Depends on version. MW has said 2020b v3 and later will work on M1 through Rosetta. There might still be issues to iron out. Lat...

environ 3 ans il y a | 0

Réponse apportée
How to declare input variables as a vector?
Of course it can be a vector, a matrix or a variable of some class.

environ 3 ans il y a | 0

| A accepté

Charger plus