Answered
Do I have to correct correlation values for two series originating from overlapped analysis?
When you calculate the correlation between two parameters with data from overlapping windows, the autocorrelation introduced by ...

2 years ago | 0

Answered
find similar numbers within a matrix
% Define the matrix M and the vector P loadedArray = load('M.mat'); M = loadedArray.M; P = [-3.49799e+01, -2.02899e+02, -1....

2 years ago | 0

Answered
Can Matlab write the output directly in a word file
If you would like to create a Word document from MATLAB and write some output to it using ActiveX (only works on Windows): % En...

2 years ago | 2

Answered
RL Agent External action not properly used in SAC
Your observation about the different behaviors between the Proximal Policy Optimization (PPO) and Soft Actor-Critic (SAC) algori...

2 years ago | 2

| accepted

Answered
MATLAB crashes when trying to generate a C++ interface
The issue you're encountering seems to be unusually severe, suggesting there might be a problem beyond just high memory usage. H...

2 years ago | 0

Answered
assemble it so that it will run
clear clc close all % Define global variable global Pr % Set the Prandtl number and solve for different cases Pr = 1; ...

2 years ago | 0

| accepted

Answered
TCP/IP communication between MATLAB and Siemens PLC 1500
Check PLC Configuration: Ensure that your PLC is configured to accept external communications on the port you are trying to use...

2 years ago | 0

| accepted

Answered
Output 0x1 sym solving a system of equations
clear clc close all syms F1_Solute_Molefraction F1_Solvent_Molefraction F1_Antisolvent_Molefraction; syms F2_Solute_Molefr...

2 years ago | 0

Answered
Why does Simulink freeze when I try to run my arduino?
Check Arduino Connection: Ensure a stable connection between your Arduino and computer. Update Software and Firmware: Keep MATL...

2 years ago | 0

Answered
how to use freqz function correctly
% Filter design N = 10; % Filter order Fcut = 2000; % Cut-off frequency of 2 kHz Fs = 15000000; % Sampling frequency of 15 MH...

2 years ago | 1

Answered
error using system -- "Command argument must be either a nonmissing scalar string or a character row vector. "
c = cmdsep; % This works in MATLAB 2023b QspicePath = 'C:\Program Files\QSPICE\'; % Example path, replace with actual Qpath....

2 years ago | 0

Answered
Speeding up a loop.
For d=4: % Vectorized operation for d=4 with implicit expansion b = sum(a(1,:,:,:) .* ... permute(a(2,:,:,:), [1, 3,...

2 years ago | 0

Answered
Check the format of a string.
For 'yyyyMMdd_HHmmss' Format: % Example date-time string dateTimeStr1 = '20240109_153535'; % Regular expression pattern for...

2 years ago | 2

| accepted

Answered
How to print figures correctly in a live script
Working on MATLAB r2023b. Thank you. ----------------------------------------------------------------------------------------...

2 years ago | 0

Answered
Best combination of number of inputs to find the closest value to weight requirement
unit_weights = [3.0; 5.10; 8.1; 10.3; 15.0]; target_weight = 400; best_combinations = []; % To store the best combinations...

2 years ago | 1

| accepted

Answered
issue of Modbus data reading
Addressing: Ensure that the addresses you're trying to read (addresses = [8, 12];) are correct and correspond to the data you ex...

2 years ago | 1

Answered
Newton Method - no of iterations
Define the function f(x) and its derivative f′(x). Choose an initial guess 0x0. Apply Newton's Method iteratively to find the ...

2 years ago | 0

Answered
ODE modeling in 3- dimension and looping
To organize the data as you described, you can simplify the extraction process like this: % Assuming 'pop' is updated within yo...

2 years ago | 0

| accepted

Answered
Matlab 'Reserved memory' ('MemUsedMatlab') creep
In MATLAB, memory management is mostly handled automatically, and there isn't a direct 'purge' command as you might find in some...

2 years ago | 0

| accepted

Answered
I have two peaks in my doppler signal. 1 @ zero and other @ actual velocity.
The Doppler spectrum you're observing shows two peaks: one at zero velocity, likely due to static objects, and another at the ...

2 years ago | 0

Answered
applications of bwconhull and its 3D version
The bwconvhull function in MATLAB finds the convex hull of a binary image, which is the smallest convex shape that contains all ...

2 years ago | 1

| accepted

Answered
What is the relation between Bit Error Rate (BER), distance d and SNR(dB)?
1. Relationship between SNR and BER:The BER for BPSK in a Rayleigh fading channel is a function of the SNR, where higher SNR t...

2 years ago | 2

| accepted

Answered
Why the error?
img = rand(3248,2048); filter = ones(25,25); % Apply the filter to the whole image with 'same' to ensure output size matches...

2 years ago | 0

Answered
How can I draw the mt sign? Frequency Modulation
% Parameters fs = 8000; % Sampling frequency for decent visualization t = 0:1/fs:5; % Time vector from 0 to 5 seconds f_c =...

2 years ago | 0

Answered
Issue uploading data using FTP and Python
Rate Limits: ThingSpeak limits data updates to every 15 seconds for free accounts. Exceeding this rate will cause only the initi...

2 years ago | 0

| accepted

Solved


Range of Values in a Matrix
Create a function that accepts a matrix of real numbers as input and returns the range of the values contained in the matrix. Th...

2 years ago

Problem


Range of Values in a Matrix
Create a function that accepts a matrix of real numbers as input and returns the range of the values contained in the matrix. Th...

2 years ago | 0 | 35 solvers

Answered
How do I find the interval in which a function is increasing ?
Find the first derivative f′(x). Solve for critical points where f′(x)=0. Determine the sign of f′(x) on intervals defined by ...

2 years ago | 1

| accepted

Answered
How Fast is Simulink Real Time? Is Simulink Real Time Faster than Rasberry Pi?
Implementing a Model Predictive Controller (MPC) in real time, especially with the stringent timing requirements that you've men...

2 years ago | 1

Answered
gca method to adjust axes properties not working within function
% Call the sample plotting function createSamplePlot(); % Sample plotting function function createSamplePlot() % Creat...

2 years ago | 0

| accepted

Load more