Answered
Hi all,I want to enlarge the white border of a picture (not crop the white border, mind you), what command or code should I use?
Hi @ma Jack, The "padarray" function can be utilized to pad the image array such that the white border of the picture is enlar...

2 maanden ago | 0

Answered
Derivatives using second diff
Hi @MJ, The following issues in the MATLAB code are causing the errors: Since "x0", "y0" and "m" are supposed to be handled ...

2 maanden ago | 0

Answered
Unable to run "Deep learning" code becuase of CUDA driver
Hi @riad didou, CUDA is limited to NVIDIA hardware and hence cannot be used with an AMD processor as an NVIDIA GPU is required ...

2 maanden ago | 0

Answered
Plotting Normal distribution ( Bell shaped )Histogram with weight Percentage in Y axis and grain diameter in X axis
Hi @NARAYAN KUMAR, It appears that the image attached is plotting the deviation of grain diameter from a certain value. Assumin...

2 maanden ago | 0

Answered
how to pass folder path to custom function using MATLAB engine API for python
Hi @ARP, MATLAB and Python handle strings differently and to ensure that folder path being passed is handled as a string in MA...

2 maanden ago | 0

| accepted

Answered
Plot imagesc on Discontinuous x-Axis with datenum
Hi @Siegmund, To make a break in your plot for the desired time range, you can create a logical mask for the array "t" and fil...

2 maanden ago | 0

Answered
Command Window is not showing simulink results
Hi @Salaheldin Mahmoud, Simulink does not show the output of the simulated models by default in the command window since the o...

3 maanden ago | 0

Answered
How to get training time of LSTM in Matlab?
Hi @Nazila Pourhajy, You can utilize the "tic" and "toc" functions for measuring the training time for your LSTM. % Initializ...

3 maanden ago | 0

Answered
How to plot 2D line graph to compare the approximate solution with the actual solution?
Hi @kaps, You can plot a surface plot using the "surf" function to compare the approximate solution with the exact solution. ...

3 maanden ago | 0

Answered
Is it possible to calculate the maximum flow in undirected graphs?
Hi @Rayan Glus, The graph edges have not been correctly assigned the weights and are hence giving out the same output for maxi...

3 maanden ago | 0

Answered
MATLAB Report Generator: Get rid of top page margin
Hi @Kevin, To remove the blank space at the top of your document, set the Header margin to '0.0in' and adjust the top margin a...

3 maanden ago | 0

Answered
I am unable to converge the blasius equation using shooting technique
Hi @Mouli Bhaskar Duddupudi, To improve the chances of convergence, you must first improve the initial guesses & based on you...

3 maanden ago | 0

Answered
How can I calculate the gussian curvature of a point cloud by matlab?
Hi @Ashkan Rigi, As of now there is no inbuilt MATLAB function for the computation and plotting of Gaussian curvature. However,...

3 maanden ago | 0

Answered
Simscape forces and torques: Centrifugal, gravitational, accelerative
Hi @ENRICO, For Multibody modelling using the Simscape library there are currently no straightforward ways similar to the Robot...

3 maanden ago | 0

Answered
Despite providing licensePath, silent installer fails due to absence of fileInstallationKey
Hi @Tashrif Tashrif, This issue may occur if you are installing a MALTAB version which is newer than your "File Installation K...

3 maanden ago | 0

Answered
Can I sort each of these group associated random points SEPARATELY for each point ?
Hi @omar th, To sort the users assigned to each base station separately you need to find the closest base station for each user...

3 maanden ago | 0

Answered
Hello there,im trying to solve a system of equations having 9 variables. The equations are as:
Hi @Ishan Bhan, To solve your system of equations, you can use the "fsolve" function. The "fsolve" function is a nonlinear sys...

3 maanden ago | 0

Answered
pointLocation doesn't work for points on boundary edges.
Hi @John Grey, This is a numerical precision issue which may arise because the point you have selected lies exactly on the edge...

3 maanden ago | 0

Answered
Using Simulink.Parameter with MATLAB Runtime
Hi @lithium_sulfate, As you correctly pointed out, the error "Unable to resolve the name Simulink.Parameter" persists because "...

3 maanden ago | 0

Answered
Mauchly's Test of Sphericity - how to handle data when data fails test?
Hi @deejt, To perform the right epsilon adjustment first check the corresponding p-values for the epsilon correction adjustment...

3 maanden ago | 0

Answered
Why do my input initialize the correct voltage, then accumulate to 10V
Hi @Ian, It may happen that while using the Data Acquisition Toolbox Support Package for your hardware, the signal is running ...

3 maanden ago | 0

Answered
Simscape not showing assembly correctly in simulation
Hi @Landon, MATLAB provides support for Creo up to version 9 as of MATLAB R2023b. If you are using Creo 10, then the assembly mi...

3 maanden ago | 0

Answered
How can I use a previous version of Matlab ? I using Matlab 2022b and I would like to run some script in a previous version 2021a. Thanks
Hi @Tayeb, to use a previous version of MATLAB you need to visit the 'downloads' page on the official MathWorks website. Here yo...

3 maanden ago | 1

| accepted

Answered
Two step ahead autoregressive prediction
Hi @Elias Pergantis, yes, you can utilize the AR functions to train models which have non-consecutive lags between terms using t...

3 maanden ago | 0

Answered
Strange mixup of equally named functions, or persistent variables?
Hi @Jeroen Boschma, this issue is occuring due to the persistent variables retaining their values and MATLAB caching the functio...

3 maanden ago | 0

Answered
Does Matlab/Simulink support a command XRUN of Cadence?
No, MATLAB/Simulink cannot directly run the 'xrun' command from Cadence. However, if you wish to integrate Simulink models wit...

3 maanden ago | 0

Answered
How to store object(like udp object) in level-2 s-function?
Hi @준호, To store the UDP packets associated with a specific Simulink block, the "UserData" parameter of the Simulink block can ...

3 maanden ago | 0

Answered
how to draw a 5x5 three-dimensional planar array with isotropic elements using the formula AF_(n ) (θ,ϕ)= {1/M sin⁡(M/2 ψ_x )/sin⁡(ψ_x/2) }{1/N sin⁡(N/2 ψ_y )/sin⁡(ψ_y/2) }
Hi @Moch Dwi Putra Maulana, Here is the code for plotting a 5x5 3D planar array % Defining the size of the array M = 5; N ...

3 maanden ago | 0

Answered
Matlab Online S3 speed: copyfile vs. websave
Hi @Steve Van Hooser, although it does seem counter-intuitive that accessing and downloading files via the cloud infrastructure ...

3 maanden ago | 0

Answered
function "getFileInfoForToolstrip" endless loop
Hi @Cindy, I have encountered this issue after the introduction of JavaScript Desktop to MATLAB. This issue is caused by numerou...

3 maanden ago | 0

Load more