Answered
How to generate secure random numbers?
@Xiang Xu One of the new approach as pointed by @Walter Roberson [special thanks]. The demo usage can be: % Example URL (repl...

2 years ago | 0

Answered
Finding the neighbouring regions
% Assuming 'binaryImage' is your binary segmented image, where each object % is separated by black borders. % Step 1: Labe...

2 years ago | 1

Answered
trplot not wroking in 2023b version
@Harshil trplot is not the default MATLAB function it is part of Robotics Toolbox. see 'Robotics Toolbox - Peter Corke' If you...

2 years ago | 0

Answered
Error while querying timetable
@OcDrive Try this out and let me know if it resolves your issue. % Define the column(s) to check for drops columnsToCheck = 3;...

2 years ago | 0

| accepted

Answered
Error using pathloss with 'CoordinateSystem' set to 'cartesian'.
To address the issue with your MATLAB code and the Longley-Rice (Irregular Terrain Model) pathloss calculations, you need to swi...

2 years ago | 0

Answered
Can a Matlab interface to a C++ library built on Linux be used on Mac?
When you build an interface to a C++ library in MATLAB, typically using MATLAB's loadlibrary function or MEX-files, you're compi...

2 years ago | 1

| accepted

Answered
How to generate secure random numbers?
1. Java Security Libraries: MATLAB doesn't directly run on the JVM, it includes a JVM to enable interaction with Java code and ...

2 years ago | 0

Answered
How to fix the "Error downloading URL" in MATLAB when increasing the range and include mountain and foliage details in the generated scenario?
The "Error downloading URL" you're experiencing in MATLAB when increasing the range for your OpenStreetMap (OSM) query likely st...

2 years ago | 0

Answered
Feature Request:Manually and interactively draw custom areas in geographic axes
To interactively draw shapes and compute areas on a geographic map, you might need to use a combination of callbacks and custom ...

2 years ago | 0

Answered
I cannot get fplot to plot my piecewise function past an x-axis value of 5
I will assume that the piecewise function should actually have three conditions: up to 3, between 3 and 5, and then from 5 to 7...

2 years ago | 0

Answered
How to plot biggest positive and negative difference as a lines?
As per recommendation from @Dyuman Joshi [special thanks] hope this will do the job. % Define a dummy signal based on the figur...

2 years ago | 0

| accepted

Answered
How to link MATLAB to Netica software
Netica API for Matlab Link: norsys.com/netica_matlab_api_popup.htm -----------------------------------------------------------...

2 years ago | 0

Answered
align signal plot close to the origin Y Axis
To address this issue, one approach would be to apply a detrending method to remove any linear trend from the signal, which coul...

2 years ago | 0

| accepted

Answered
How to plot biggest positive and negative difference as a lines?
An initial implementation to give you the idea. Incase of any issue let me know. % Define a dummy signal based on the figure (r...

2 years ago | 0

Answered
using keyboard to control
% Execute the animation function % fan_animation(); function fan_animation() global stopRotation; % Declare as glo...

2 years ago | 0

| accepted

Answered
Decreasing runtime on blfread or other suggestions for big datasets
Use efficient libraries: Seek out the best library for BLF file reading, possibly a specialized one. Process in chunks: Read an...

2 years ago | 0

| accepted

Solved


Determine pressure altitude using field elevation and altimeter setting
Given an airfield's elevation in feet (ft) and the current altimeter setting in inches of mercury (inHg), calculate the pressure...

2 years ago

Answered
Strange warning regarding accuracy of computation in Matlab ?
The warning from Matlab indicates a small relative error in your computation, suggesting you are at the limit of precision for d...

2 years ago | 2

Answered
Termination of Genetic Algorithm
To adjust the FunctionTolerance and ConstraintTolerance: options = optimoptions('ga', ... 'PlotFcn',...

2 years ago | 0

| accepted

Answered
How can I make a electroplating rate algorithm ?
I'll guide you through a general approach and highlight MATLAB tools and functions that might be useful: 1. Define Quality Met...

2 years ago | 0

| accepted

Answered
Design a cascade of two fixed-bed catalytic reactors
The following is an extended version of your provided script with additional functionalities and comments explaining each step. ...

2 years ago | 0

| accepted

Answered
Loop does not work
You haven't initialized m before the loop starts, and you're using it as a loop index. This can lead to unexpected behavior or e...

2 years ago | 1

| accepted

Answered
how to move a shape (or a figure) based on a specific motion equation to a point of the graph in real time?
Includes the vector field from your original code snippet, and it adds functionality to move a rectangle shape across the field....

2 years ago | 0

| accepted

Answered
Inputs and targets have different numbers of samples
I have added some debugging checks and comments to help ensure that the inputs and targets have the same number of samples when ...

2 years ago | 0

Answered
Play a wav file in background using parfeval and backgroundPool but there is no sound?
Here are a few things you can check and try: Audio Hardware Access: Make sure that the background workers have access to the au...

2 years ago | 0

Answered
How to compare contours?
To what I understand. There maybe other ways to achieve desired results: To compare the 11 Gy isodose line with the tumour cir...

2 years ago | 1

| accepted

Answered
Is there a method to combine some functions into a single .m file?
In MATLAB, when you're working with object-oriented programming (OOP), you create classes to encapsulate data and functions that...

2 years ago | 1

| accepted

Answered
Display error(encoding)
Way 1- Change MATLAB's Locale Settings to Chinese: You need to change MATLAB's locale settings to one that supports Chinese char...

2 years ago | 0

| accepted

Answered
How to make surface plot from results training BPNN with 3 input
I am assumes you have a function bpnn_predict which takes two inputs and produces an output, and you wish to plot the results fo...

2 years ago | 0

Answered
Load Calculation of Hydrodynamic Journal Bearing
you could use integral2 or dblquad function: % Define the pressure function, replace this with your actual function pressure =...

2 years ago | 1

| accepted

Load more