Answered
How can I receive a cell array using a UDP port?
Sender client_port = 12389; clientAddress = '192.168.100.202'; % Define the cell array C = {5, "cereal", 110, "C+"; 12, "p...

5 months ago | 0

| accepted

Answered
Circular shifting or rotating structure of array elements
% Shift rows up by one position, making the third row the first A_shifted = circshift(A, -1); where A is your matrix/array. R...

5 months ago | 1

Answered
call Matlab code from c# / .NET threads: multi-thread scalability: is MathWorks.MATLAB.Engine best option?
MATLAB Engine API for .NET: MATLAB provides the Engine API for .NET, which allows you to call MATLAB from .NET applications. How...

5 months ago | 1

| accepted

Answered
How to correctly store and access data in a 4D array?
It can be and other way could be: % Initialize a 4D array to store 2-by-2 matrices data = zeros(10,5,2,2); % Fill the array...

5 months ago | 0

Answered
integration in matlab plot
% Your desired values here x = [0, 0.5, 1.2, 1.4660, 2.9319, 4.3979, 5.8639, 7.3298, 8.7958, 10.2618, 11.7277, 13.1937, 14.6597...

5 months ago | 0

| accepted

Answered
trrapz function not working in matlab R2023b, how can I fix this?
clear clc close all table = readtable("B737lift_drag.xlsx"); x = table{:, 1}; % Convert table column to numeric array lift...

5 months ago | 0

Answered
How can i encode strings in a array to numbers?
Using containers.Map % Assume 'matrix' is your string matrix uniqueCities = unique(matrix(:,9)); % Create a map object where ...

5 months ago | 0

| accepted

Answered
change the colors of legent in 2D-plot
@SIEF ADDEEN To what I understand your question: % Dummy data A = linspace(-15, 35, 100); % Common x-axis for Bs series A1 = ...

5 months ago | 0

Answered
How to combine two diffrent antenna figures into one
% Check for Antenna Toolbox availability if ~license('test', 'Antenna_Toolbox') error('Antenna Toolbox is not available. P...

5 months ago | 1

Answered
How to combine two diffrent antenna figures into one
@Marvin Hope this is what you want: % Check for Antenna Toolbox availability if ~license('test', 'Antenna_Toolbox') error...

5 months ago | 1

| accepted

Answered
How to access and manipulate the cursor Editor
@Martin Schmelzle An initial implementation. May need adjustment as per your needs: direction = 'down' activeEditor = matlab...

5 months ago | 0

Answered
fourier transform ans amplitude
Dividing by sqrt(n)^2 after performing the FFT on a Gaussian pulse or any signal in MATLAB is a normalization step to ensure tha...

5 months ago | 0

| accepted

Answered
Simulink Real Time Ethernet
Simulation Preparation: Design your Simulink model as per your project requirements. Ensure you incorporate the necessary blocks...

5 months ago | 1

| accepted

Answered
how to find intersection data between 2 function
@Arif A rough idea: % Assuming you have the following coordinates % A(xA, yA), B(xB, yB), and the x-coordinate of C (xC) xA...

5 months ago | 1

Answered
Plotting sine functions using linspace command
@Kyle Weaver I recommend 'MATLAB Learning Material' and 'References' for further understanding. % Define the range of t with ...

5 months ago | 1

| accepted

Answered
Guidance for importing a .wav audio file into MATLAB for digital filter simulation.
Step 1: Import the .wav Audio File MATLAB's audioread function is perfect for importing audio files. You can use it to read you...

5 months ago | 0

| accepted

Answered
i want convert recorded audio file to binary.
% --- Audio to Binary --- [audio, fs] = audioread('your_audio_file.wav'); % Load your audio file here audio_normalized = int16...

5 months ago | 0

| accepted

Answered
How to access bounds of conditions obtained from solving matlab inequalities ?
syms x y = x^2 - 3*x + 2; % Example function r = solve(y > 0, x, 'Real', true, 'ReturnConditions', true); % Extract the con...

5 months ago | 0

| accepted

Answered
distribution of interpolation points in spline interpolation
n = 10; x_star = 6; % Your threshold value x = [linspace(1, x_star, n-1), 10]; % Densely pack x-values up to x_star, then jump...

5 months ago | 0

Answered
How can I find the vector that simultaneously maximizes my two functions?
% Clear workspace, close all figures, and clear command window clear; close all; clc; % Define constants diffTemp = 2 - 1; ...

5 months ago | 1

| accepted

Answered
Display signal spectrum in real time
@Ho Step 1: Establish Ethernet Connection First, you need to establish a connection between MATLAB and your FPGA board over Et...

5 months ago | 0

Answered
How do I prevent the command that caused an error being displayed in the command line?
Verify Executable: Before executing the command, ensure the executable exists and has the necessary execution permissions. Use L...

5 months ago | 0

Answered
how to write sqrtroot power 7 ?
x = 2; % Example value for x resultFromRootFunction = nthroot(14*x - 7, 7); resultFromPowerFunction = (14*x - 7)^(1/7); d...

5 months ago | 1

Answered
Arduino MATLAB sin function loss of resolution with data
Serial Buffer Overflow: At high data rates, the serial buffer on the Arduino or in MATLAB might be overflowing. Make sure that M...

5 months ago | 0

Answered
Elegoo Uno R3 arduino clone not interfacing with matlab software.
1. Verify Serial Port: Check Port: Ensure you're using the correct serial port number. Open the Arduino IDE and go to Tools -> ...

5 months ago | 0

Answered
Python code Simulink HDL coder
HDL Coder cannot directly generate HDL code for an FPGA from a Simulink model that contains Python code blocks. This is because ...

5 months ago | 1

Answered
cheatsheet for dealing with structures?
Understanding MATLAB Data Containers Structures (struct): A structure is a data type in MATLAB that allows for the storage of d...

5 months ago | 0

Answered
how can I read and draw a plot and histogram from txt file on Matlab.
@Yaren Duygu Atalay An intial attempt to the problem: % Define the path to your data file filePath = 'Test.txt'; % Ensure this...

5 months ago | 0

Answered
To plot mean signal(mean of multiple signals) in matlab figure?
@SUDEEP SINGH RAWAT You are using simulink?. To what I currently understand about your query. If you are planning to use Simuli...

5 months ago | 0

| accepted

Answered
FFT treatment on Raman data
@Jun Some important points to consider: FFT for Removing 0-Frequency Noise: Convert to Time Domain: Transforming Raman spectro...

5 months ago | 0

| accepted

Load more