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...

2 years 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...

2 years 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 -> ...

2 years 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 ...

2 years 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...

2 years 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...

2 years 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...

2 years 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...

2 years ago | 0

| accepted

Answered
Error using surf Z must be a matrix, not a scalar or vector.
To correct this, you need to use X and Y from the output of meshgrid in your calculation of Z, ensuring that Z is a matrix where...

2 years ago | 0

Answered
How can I skip the rest of an if statement?
if n > 1 if a == 1 disp('Haha') % No additional commands here - skips directly to the end of the outer if...

2 years ago | 1

Answered
How to use and edit rows and values of a data tip when created by mouseclick?
% Adjust as per your requirment % Example data x = 1:10; % x values assumed y = rand(1, 10); % y values assumed filename...

2 years ago | 0

Answered
Interpeting results of residue command
@brooke The residue command in MATLAB is used to perform partial fraction expansion of a rational function, which is typically r...

2 years ago | 0

| accepted

Answered
I cannot receive from udp
@joshua dori In such scenarios I often follow these guidelines as they may help to narrow down the issue. If after these steps y...

2 years ago | 0

Answered
vectorized operations on symbolic functions
syms x1 x2 x3; % symbolic variables y = x1^3/3 + x2^2/2 - x3; % symbolic function y % Generate a random matrix X with 500 ro...

2 years ago | 0

| accepted

Answered
I have two tables. How can I compare the values in the first column of each table, then do a calculation if the values are equal?
@Srh Fwl A basic idea. % Example initialization with an additional data column Table1 = table([1; 2; 3; 4; 5], rand(5, 1), 'Va...

2 years ago | 1

| accepted

Answered
How do I get my old university account as in gmail account?
@MathWorks Support Team can provide a better recommendation. ------------------------------------------------------------------...

2 years ago | 0

Answered
Plotting lines with quadruplets R-G-B-Alpha ?
You can set the transparency (alpha) of lines and other graphical objects by specifying a fourth element in the color vector. Th...

2 years ago | 0

Answered
How do I plot a timeseries?
SInce I dont have your exact data file. Here is the initial approach you can try: % Step 1: Import the Data filename = 'your_f...

2 years ago | 0

Answered
how to make matlab calculate (x) in PDE
% Define constants and parameters kp0 = 140270; Eap = 43900; kd0 = 0.355; Ead = 17400; T = [333 334 335 336 337 338 339 340...

2 years ago | 1

| accepted

Answered
How to set the 'DisplayName' properties for a bar chart with multiple sets of bars directly from the call to 'bar', not using 'set' afterwards
As per my understanding and the working code you shared. It's essential to understand that the syntax you attempted to use dire...

2 years ago | 0

Answered
how to vectorize 4 for loops with several index combinations?
B = rand(3,3,3,3); % Preallocating A for the output A_loops = zeros(size(B)); tic; % Start timing for i=1:3 for j=1...

2 years ago | 1

| accepted

Answered
Multi client TCP/IP communication
@chizom wornu Some of the recommendations. See also the reference link. MATLAB's Limitations: Unfortunately, MATLAB's built-in ...

2 years ago | 1

| accepted

Answered
how to show P-values in correlation map?
% Example data for demonstration % Replace these with your actual corrMap and pValueMap variables corrMap = rand(100); % 100x1...

2 years ago | 1

| accepted

Answered
Unable to Programm stm Microcontroller.
@Mihir Make sure STM32CubeMx instance is not already open and the internet access is working. Also, if its better to know if yo...

2 years ago | 0

Answered
Dual-core STM32 hardware support
When can we expect to see hardware support for dual-core controllers ? Only Mathwork Staff can tell when they are planning to d...

2 years ago | 1

Answered
Interp2 with changing y and z-axis
@Christoph Try this a quick overview: Step 1: Create a Regular Grid First, determine the range of your x and y data and create...

2 years ago | 0

Answered
Getting error in a code.
The error Unable to resolve the name 'agent.getAction'. means that MATLAB cannot find a method getAction in your agent object. E...

2 years ago | 0

| accepted

Answered
Trouble with Vitis Model Composer 2023.2! MATLAB R2021b crashes when I want to open the Model Composer Hub component.
@Zeinab Please see this compatability link: Which versions of Xilinx System Generator (now Vitis Model Composer) support which ...

2 years ago | 0

Answered
How to remove exponential answers
Of what I understand about the problem: Assuming x and error are the values you want to print in a fixed-point format without e...

2 years ago | 1

Answered
How to code the following in MATLAB ?
With multiple antennas at the receiver, you can think of ℎ as a vector (or matrix with a single column) where each element ℎ_n c...

2 years ago | 0

Load more