Answered
solving for coefficients in 4th order polynomial
@nctt Polyfit: Use polyfit to find the coefficients of the polynomial that best fits your data. The polyfit function finds the ...

2 years ago | 1

Answered
Real time data collect and plot with keithley 2636
Real-time data acquisition and plotting while a Keithley instrument is running a script can be challenging, particularly because...

2 years ago | 1

| accepted

Answered
how toggle this warning using unstack function
The warning message you're seeing in MATLAB when using the unstack function on your table T1 is related to the naming of table v...

2 years ago | 0

Answered
MATLAB activation error using ubuntu terminal
Activating MATLAB on a remote Linux machine via SSH can be tricky, especially if you don't have X11 forwarding enabled (which al...

2 years ago | 2

| accepted

Answered
How can I create and utilize a 4D matrix for the temperature function of time and spatial coordinates T(t, x, y, z)?
In MATLAB, when you create a 4-dimensional array and try to access its elements, you need to be careful with the syntax and the ...

2 years ago | 1

Answered
i have seperate frequency vs magnitude and frequency vs phase data. how can i use it in matlab for system identification
The MATLAB System Identification Toolbox is indeed designed to work with single input, single output (SISO) systems, as well as ...

2 years ago | 1

Answered
Add scalar inputs to the actor network
To add scalar values to the actor network in a reinforcement learning setup using MATLAB, you need to modify both your observati...

2 years ago | 0

| accepted

Answered
Why is the code not continuing to the next if statements in my app?
Without seeing the full context of your application, including how the error field is set and modified across different parts of...

2 years ago | 0

Answered
Determining the coordinates of a node between two known nodes and knowing the distances between the known nodes
function C = findPointC(A, B, d_AC, d_CB) % Define the system of equations function F = distanceEquations(C) ...

2 years ago | 0

Solved


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

2 years ago

Answered
An equivalent function to "imregionalmax" with higher speed
Parallel Processing: If you have multiple cores available, you can use MATLAB's parallel processing tools (parfor loop or batch ...

2 years ago | 1

Answered
Pseudorandom sequence with NO MORE than two consecutive numbers
@Pablo Check this out. % Create and display the matrix randomMatrix = createRandomMatrix(); disp(randomMatrix(1:40,:)); fu...

2 years ago | 0

Answered
How to solve this problem?
@Arpita % Read the data from Excel file data = readtable('path_to_your_excel_file.xlsx'); % Initialize q column with zeros ...

2 years ago | 0

Answered
How to solve this problem?
% Given x values x_values = [1, 1.1, 2.5, 6, 4.3, 8.9]; % Calculate q values q_values = x_values.^2; % Filter for x values...

2 years ago | 0

Answered
Publish LaTeX equation color is white/grey
To change the color of text and equations in LaTeX, you can use the xcolor package and then define the color in which you want t...

2 years ago | 0

Answered
Pseudorandom sequence with NO MORE than two consecutive numbers
@Pablo Check this out. % Create the matrix randomMatrix = createRandomMatrix(); % Display the first 20 rows of the matrix di...

2 years ago | 0

Answered
find max for every 7 rows
% Create dummy data for the timetable matrix IntD = datetime({'2023-11-13 01:34:35.120'; '2023-11-13 01:34:40.090'; '2023-11-13...

2 years ago | 0

Answered
how to find the values that minimize the objective function using the generic algorithm?
Adjust Bounds: Review the lower (lb) and upper (ub) bounds that you've set for the optimization variables (A and E). Make sure t...

2 years ago | 0

Answered
Fuel Cell EV reference application: how to monitor H2 tank level during simulation
In MATLAB and Simulink, monitoring the fuel tank level in a Fuel Cell Electric Vehicle (FCEV) simulation can be accomplished t...

2 years ago | 0

Answered
Finding a common step value between an array of non-uniformly distributed points
% Test the function with your arrays A = [0, 0.1, 0.5]; B = [0, 0.1, 0.5, 0.75]; C = [0, 0.1, 0.5, 0.75, 5.12]; A_step = f...

2 years ago | 1

Answered
How to prevent readtable converting numbers to date automatically when importing data? (and/or) How to import multiple data ranges with readtable?
1. Specify Data Types for Each Column You can instruct readtable to import each column as a specific data type. This can be don...

2 years ago | 0

Answered
How can I speed up this function? #vectorize
It seems that the complexity of the indexing in this specific case is not easily amenable to vectorization without encountering...

2 years ago | 0

Answered
I want to plot graph for my intersatellite range rate. How can i do that
% Define the initial positions and velocities recPos = [-7500, 12500, 15000]; recVel = [112.5, 100.66, -50] / 3600; % Convert ...

2 years ago | 0

| accepted

Answered
Why doesn't it give the fft of the triangle signal as sinc^2?
Sampling: The triangular wave must be properly sampled in the time domain. If it's not sampled correctly, or if the wave is not ...

2 years ago | 0

Answered
How do I open a file without the dialog box opening?
if you want to open a file automatically without user interaction and you know the file's name and path, you can directly use th...

2 years ago | 0

| accepted

Answered
Frequency modulation without fmmode?
@cagri esen Assumming MATLAB environment. % Parameters k_f = 50; % Frequency sensitivity f_c = 500; % Carrier frequency in Hz...

2 years ago | 0

Answered
Error in kinematics (line 22) disp(['Initial velocity: ', num2str(solu), ' m/s'])
% Prompt the user for input values disp('Please enter the following values:') disp('Enter 0 for the unknown variable') prompt...

2 years ago | 0

Answered
Access to defaultParam struct
To regain access to model parameters in a structured way in MATLAB R2023 using MATLAB/Simulink Coder, you may need to adjust t...

2 years ago | 1

| accepted

Answered
Are there any MATLAB Simulink models for Indirect Matrix Converters, especially Sparse Matrix Converter?
Here are some resources and approaches you can consider: Available Resources: File Exchange: Check the MATLAB Central File Exc...

2 years ago | 0

Answered
Pseudorandom sequence with NO MORE than two consecutive numbers
% Create the matrix randomMatrix = createRandomMatrix(); % Display the first 20 rows of the matrix disp(randomMatrix(1:20,:...

2 years ago | 0

Load more