Answered
executing a plot every time interval without keeping matlab busy
% Run the example updatePlotAfterIntervalExample; % main function/logic function updatePlotAfterIntervalExample % Dummy ...

2 years ago | 0

Answered
how can I make a custum legend in a second figure?
% Load the meteo data if it's stored in a .mat file load('path_to_your_meteo_data.mat'); % Replace with the actual path to your...

2 years ago | 1

Answered
What is the best way to do data version control for Machine Learning models
DVC (Data Version Control): DVC is an open-source tool designed to handle large files, datasets, and machine learning experimen...

2 years ago | 0

| accepted

Answered
Use CDF for graph
To use a Cumulative Distribution Function (CDF) in your graph, you'll first need to compute the CDF for each of the data sets yo...

2 years ago | 0

| accepted

Answered
Plot phase on FM modulation on time domain
% Sampling frequency and Time interval Fs = 1000; % Sampling frequency t = -10:1/Fs:10-1/Fs; % Time interval % Frequency in...

2 years ago | 0

Answered
Categorical to Numeric problem
% Example Training Data (Categorical) training_categorical_data = {'cat', 'dog', 'fish', 'dog', 'cat'}; % Convert Categorica...

2 years ago | 0

| accepted

Answered
Lognormal Fitting with the Pore Size and its Probabilities
% Given Data Counts = [71 73 53 77 79 141 158 237 360 594 958 1659 3094 7183 19034 40051 125001 143248 164224 168209 172406 167...

2 years ago | 1

Answered
Cuál es el error en el código?
@Freddy Some updates to the code valoresalpha = [0 5 10 15 20 25 30]; valoresbeta = [1.6595 1.5434 1.4186 1.2925 1.1712 1.0585...

2 years ago | 0

Answered
I am applying ARIMA
% Assuming X_new and T_new are your full datasets for temperature, humidity, % pressure, and wind speed respectively % Resha...

2 years ago | 0

| accepted

Answered
Parallel Computing in C when using Matlab Coder (parpool and gpuArray)
When you convert MATLAB code to C/C++ using MATLAB Coder, the parallelism from high-level constructs like parpool or gpuArray is...

2 years ago | 0

| accepted

Answered
Hello all, I would like to kindly ask for your help, if you are familiar with the graph below. Please give me a suggestion or give me a code related to this graph. Thank You!
% Define system parameters md_ms = 0.2; % Md/Ms ratio b_a = 1; % b/a ratio c_a = [0.25, 0.5, 1]; % Different c/a ratios omeg...

2 years ago | 1

Answered
Can't use Excel while running MATLAB code in the background
The behavior you're encountering, where MATLAB figures take focus away from Excel when they're created, could be due to MATLAB's...

2 years ago | 0

Answered
Smearing in Range-Doppler plots
Doppler Effect: The change in frequency of the radar signal due to the relative motion of the target can lead to variance over t...

2 years ago | 0

Answered
How do i generate pulse waveform of random binary sequence in MATLAB?
% Define Parameters N = 1000; % Number of bits PW = 1e-6; % Pulse width in seconds PRF = 1e3; % Pulse Repetition Frequency in...

2 years ago | 0

Answered
Difference between Matlab, simulink and embedded coder?
All three toolboxes belong to MathWorks and enable code generation for embedded systems, they serve distinct purposes and offer ...

2 years ago | 0

Answered
How can I plot a figure with 3 y-axis and and common logarithmic x-axis?
% Sample data x = logspace(0, 2, 100); % Logarithmic x-axis data y1 = sin(x); y2 = cos(x); y3 = exp(0.05 * x); % Ensure y...

2 years ago | 0

| accepted

Answered
High pass filter on cumtrapz
clear all; close all; clc; % Load data from the CSV file NormChest = readtable('Chest-Normal.csv'); C = table2array(NormC...

2 years ago | 1

Answered
Error using .* Array dimensions must match for binary array op. Error in uas1 (line 7) If_low = If.*c;
I = imread('gray.jpg'); % Make sure the input image is grayscale if size(I, 3) == 3 I = rgb2gray(I); end % Convert ...

2 years ago | 0

Answered
Issue with Consistent Value Reduction in 3D Point Interpolation Using MATLAB
I am gonna elaborate a bit on the post-processing correction with a code snippet: % Assuming 'F' is your scatteredInterpolant o...

2 years ago | 0

Answered
I have a binary data of unknown length and i have to divide it into different blocks of size 512 bit. How should I do it?
Assuming MATLAB environment. % Generate dummy binary data (for example, 2000 random bits) totalBits = 2000; blockSize = 512; ...

2 years ago | 1

| accepted

Answered
I wanted to generate 64QAM symbols and then demodulate them.
M = 64; % Modulation order bitsPerSym = log2(M); % Bits per symbol x = randi([0 1],10*bitsPerSym,1); % Random bits % Modula...

2 years ago | 0

Answered
Designing High Pass Filter
highpass function is designed to filter the signal, not to return the filter itself. You might be looking to use designfilt to c...

2 years ago | 0

Answered
use exportapp to print a figure in eps
Here's how you could use exportapp to save a figure with UI components in MATLAB to a format like SVG: exportapp(figureHandle...

2 years ago | 0

Answered
Table to timetable but the datetime doesn't like my data
The correct way to create a datetime object in MATLAB from separate year, month, and day columns is to ensure that these columns...

2 years ago | 0

| accepted

Answered
How can I plot poles of a fractional order characteristic equation in the complex w plane for some value of alpha?
% Define the range of omega omega = logspace(-2, 2, 1000); % A log-spaced vector from 0.01 to 100 % Define s as j*omega s...

2 years ago | 0

Answered
Error in my code
url = 'https://www.mathworks.com/supportfiles/predmaint/condition-monitoring-and-prognostics-using-vibration-signals/pdmBearin...

2 years ago | 0

Answered
Does anyone know how to code this summation equation that includes exponential and sine function?
Calculates the summation of the series as described: result = compute_summation(1,100); % Computes the series for x = 1 with ...

2 years ago | 0

| accepted

Answered
How can I add White Gaussian Noise?
Generate three sinusoids with frequencies of 60 Hz, 70 Hz, and 100 Hz. Ensure that each sinusoid has a power of 1 (unity power)...

2 years ago | 1

| accepted

Answered
I want to use Interpole with Zero Padding
n = 0:15; % n should start at 0 x = cos(2*pi*0.2*n); N = length(x); % Define the half_N variable correctly half_N = ceil...

2 years ago | 0

Answered
How to create and plot square wave on specified "Tau" value
% Define the time vector from -10 to 10 with 1000 points t = linspace(-10, 10, 1000); % Define the square wave function s...

2 years ago | 1

| accepted

Load more