Answered
Why do I get this error while connecting the Arduino Mega2560 to MATLAB?
The error "Internal error: The initialization of the server code is incorrect" could be caused by various factors. Troubleshoo...

12 maanden ago | 0

Answered
Difference between 2 images?
% Read the video file videoFile = 'path/to/your/video.mp4'; videoObj = VideoReader(videoFile); % Read the first frame where...

12 maanden ago | 2

Answered
How to delete all strings with NaN in Struct
Based on your description, it seems like you have a struct variable osmScenarios, and within it, there is a field trafficLight t...

12 maanden ago | 2

| accepted

Answered
How to estimate how long the inversion process will take?
This is the optimized the code by removing unnecessary variables and setting their initial values to zero directly in the symbol...

12 maanden ago | 0

Answered
How to mute the notification of the official function like this?
Yes, you can suppress the output of the quadprog function and avoid displaying the notifications in the command window. MATLAB p...

12 maanden ago | 0

| accepted

Answered
I want to isocline induced step function
To simulate the isocline-induced step function differential equations, we can use MATLAB's ODE solver `ode45`. First define th...

12 maanden ago | 0

Answered
how to improve quality of exportapp?
MATLAB's App Designer does not provide a built-in option to directly control the resolution of the exported image. This is becau...

12 maanden ago | 0

Answered
Can you create a CNN with two images as inputs and a 6x1 array as an output?
This is sample code.. Try it. % Load your dataset and ground truth data here % Replace 'input_images' and 'ground_truth' with ...

12 maanden ago | 0

Answered
How to reference a model in matlab?
Model referencing in Simulink allows you to modularize your system by breaking it into separate models that can be reused and re...

bijna een jaar ago | 0

Answered
Algorithm for edge connectivity of a digraph?
To compute the edge connectivity of a directed graph (digraph) in MATLAB, you can use the built-in function "edgeconncomp". This...

bijna een jaar ago | 0

Answered
show the confusion metrics as figure?
After Evaluating semantic segmentation results, add the below code: % Get the confusion matrix from the 'metrics' object confu...

bijna een jaar ago | 0

| accepted

Answered
Variable input ODE solution
Here It is .. clear; close all; clc; % (Please insert the rest of your code for jds = 1:length(ds_matrix) for jtheta...

ongeveer een jaar ago | 0

Answered
How to fix table variable related error?
Here It is ... clc; clear all; close all; data = readtable('sample.csv'); X = data(:, 1:end); % Get the current vari...

ongeveer een jaar ago | 0

| accepted

Answered
How to represent (0:10:35) as 00:00 00:10, ... in Yticklabel?
In your code, you are using set(gca, 'YTick', ...) to set the y-axis ticks, which are actually numerical values from 0 to 0.51 (...

ongeveer een jaar ago | 0

| accepted

Answered
Train a Feedforward NN with Error Weights for the performance function
Yes, you can set different error weights for your Feedforward Neural Network training process. The error weight values can be sp...

ongeveer een jaar ago | 0

Answered
surf plot is required
To create the surface plot for the given code, you can use the MATLAB 'surf' function inside the loop. However, you need to be c...

ongeveer een jaar ago | 0

Answered
Can we model a BLDC motor as a generator in MATLAB?
Yes, it is possible to model a BLDC (Brushless DC) motor as a generator in MATLAB Simulink. To do this, you can use the Simulink...

ongeveer een jaar ago | 0

Answered
boundary conditions and solvepde
Based on your description, it seems like the issue is with how you are applying and updating the boundary conditions for differe...

ongeveer een jaar ago | 0

| accepted

Answered
Need help in projected area of pipe along the direction of flow
It looks like there might be a mistake in your code while calculating the projected area of the elements. The issue seems to be ...

ongeveer een jaar ago | 0

Answered
How to see all the windows at a time on a single display
In MATLAB, you can arrange multiple windows in a single display using the "Tiled" layout option. This feature allows you to orga...

ongeveer een jaar ago | 0

Answered
I need to adda legend to this code, as tried in the last three lines !
No, the code you provided has a few issues in adding legends. Here's the corrected version of the code: x = categorical({'Pre...

ongeveer een jaar ago | 0

Answered
How can I export a table to the active Excel sheet?
To write data back to the active sheet in Excel without specifying the sheet name, you can use the "actxserver" interface to int...

ongeveer een jaar ago | 0

Answered
Block least-squares parameters estimation
Estimating a(t) from the output y(t) in the presence of noise can be done using system identification techniques. One approach y...

ongeveer een jaar ago | 0

Answered
How to simulate a counter current fixed Bed Reactor
Here's how you can modify your code for a countercurrent reactor: % Update initial conditions for countercurrent reactor nNa(1...

ongeveer een jaar ago | 0

| accepted

Answered
How to get the TRUE PARETO data for test functions for multi-objective optimization?
Obtaining the true Pareto front typically involves using mathematical or analytical methods to compute the optimal solutions tha...

ongeveer een jaar ago | 0

Answered
How can I code Finite element discretization of 2D for rectangular object ? .... The sample is attached on the picture.
check this one % Define problem parameters Lx = 1; % Length of the rectangular domain in the x-direction Ly = 1; % Length of ...

ongeveer een jaar ago | 0

Answered
ddpg agent does not learn
Check this % Define the observation and action space numObs = 4; % Replace with the actual number of observation features num...

ongeveer een jaar ago | 0

Answered
rt_round redefinition problem
It seems like you are encountering a conflict with the `rt_roundd` function in your MATLAB code generation for the Autosar platf...

ongeveer een jaar ago | 0

Answered
How to regrid along latitude and longitude of a 3d mat file
% Load the original data from the mat file (assuming the variable name is 'originalData') load('your_data_file.mat', 'originalD...

ongeveer een jaar ago | 1

| accepted

Answered
Different training results for neural network when using full dataset versus partial dataset
The difference in results between scenario 1 and scenario 2 could be due to the different order of data samples seen during trai...

ongeveer een jaar ago | 0

| accepted

Load more