Respondida
how can i form a ZCT matrix of 64*64.
The ZCT pattern is a matrix of -1's and 1's that is repeated in a checkerboard pattern across the matrix. This is an example co...

más de 1 año hace | 0

Respondida
how to call a script file in simulink?
The MATLAB Answer found here lists the steps to call a MATLAB script file from Simulink.

más de 1 año hace | 0

Respondida
how can i get 6 gaussian distribution?
To draw a histogram of six Gaussian distributions with six local max values as the average value, we can use the histogram funct...

más de 1 año hace | 0

Respondida
Extract column from text file
To extract the first number between the brackets in the data provided, we can use regular expressions in MATLAB. This regular e...

más de 1 año hace | 0

Respondida
How to add script to testing environment
Yes, it is possible to call a MATLAB script or function in Simulink Test. You can use the MATLAB Function block or the MATLAB Sy...

más de 1 año hace | 0

Respondida
Find distance of two points inside a matrix
The interp2 function in MATLAB to interpolate the depths between two points on a grid of longitudes and latitudes. I will show a...

más de 1 año hace | 0

| aceptada

Respondida
Exporting excell from matlab
To export a cell array as an Excel file from MATLAB, we can use the writetable function. This is an example which demonstrates h...

más de 1 año hace | 0

| aceptada

Respondida
change matlab linear index to numpy.
This can be the equivalent NumPy code for the given MATLAB code: import numpy as np X = np.random.rand(16, 10, 1200) My = np....

más de 1 año hace | 0

Respondida
Can you please help me ?
The following code plots the functions pointed by you: % Define the ramp function r(t) r = @(t) t .* (t >= 0); % Define th...

más de 1 año hace | 0

Respondida
Continuous-Time Signal Plotting
The following MATLAB code will plot the three functions pointed by you: % Define the ramp function r(t) r = @(t) t.*(t >= 0);...

más de 1 año hace | 0

Respondida
find center of matrix
To find a mini square exactly at the center of a 100x120 matrix in MATLAB, we can follow the following steps: Calculate the cen...

más de 1 año hace | 1

Respondida
How to train data in SVM?
In general, it is a good practice to normalize your data before training a machine learning model. Normalizing the data ensures ...

más de 1 año hace | 0

Respondida
How to compare two xcel worksheets?
To compare two Excel worksheets in MATLAB, we can use the readtable function to read each worksheet into a table, and then use t...

más de 1 año hace | 0

Respondida
Quistion 1: Write a MATLAB program (Script file) Q1_my_average that takes a vector (an array) of values and returns the sum and product of this vector, you need to use two way in solving this question, one of them is using built in function.
This is a MATLAB program called my_average that takes a vector of values as input and returns the sum and product of the vector:...

más de 1 año hace | 0

Respondida
nntool traing parametrs meaning?
Effective R2022a, the nntool has been removed and replaced with nnstart.

más de 1 año hace | 0

Respondida
Write MATLAB code for height of projectile and range of projectile
We can write MATLAB code to calculate the height and range of the projectile for a range of launch angles, and then plot a graph...

más de 1 año hace | 0

Respondida
How can i calculate memory cost of my program?
To compute the memory cost of a MATLAB program, we can use the whos function to display information about the variables in the M...

más de 1 año hace | 0

| aceptada

Respondida
how do i plot the following signal in matlab? x(n)=4u(n)-u(n-1)-u(n-2)-2u(n-3)
To plot the signal x(n) = 4u(n) - u(n-1) - u(n-2) - 2u(n-3) in MATLAB, we can first define the signal as a function of n, and th...

más de 1 año hace | 0

Respondida
how to import.csv file in sptool
To import a data file in CSV format into sptool in MATLAB, you can use the readtable function to read the CSV file into a table....

más de 1 año hace | 0

Respondida
Gauss-Seidel for solving linear equations
To solve the system of linear equations using the Gauss-Seidel iterative method in MATLAB, we can apply the iteration formula fo...

más de 1 año hace | 0

Respondida
Matlab programming code for comparing linear equation and cholesky decomposition method
To compare solving a linear system using the standard linear equation method and the Cholesky decomposition method in MATLAB, we...

más de 1 año hace | 0

Respondida
Use while for bisection method
The bisection method is a numerical algorithm used to find the roots of a function within a specified interval. This is an examp...

más de 1 año hace | 0

Respondida
Help for matrix in matlab
I am assuming that you wish to get a 400x1 matrix, instead of a 20x1 matrix, the latter being not possible without dropping elem...

más de 1 año hace | 0

Respondida
Perform convolution between the two given signals 𝑥(𝑡) = 5 cos 𝑡 and ℎ(𝑡) = 2𝑒 −|𝑡| . Verify the same using MATLAB.
To perform convolution between the two given signals x(t) = 5cos(t) and h(t) = 2e^(-|t|), we can use the following steps: Defin...

más de 1 año hace | 0

Respondida
Matlab function that takes in a matrix to test for positive definite
This is a MATLAB function that tests whether a given matrix is positive definite: function [is_pd] = isPositiveDefinite(A) % F...

más de 1 año hace | 0

Respondida
Please I need help with this,translating into Fortran expressions
I hope these are the FORTRAN expressions for the given expressions: (i) X = 1.0 + (Y ** 3)/(2.0*REAL(2)) - (Y ** 5)/(REAL(24))...

más de 1 año hace | 0

Respondida
Read notes from a PowerPoint presentation?
As pointed out by you, actxserver function has to be used to read speaker notes for each slide in PowerPoint from MATLAB and col...

más de 1 año hace | 0

Respondida
What is the functionality of '.uz'?
In MATLAB, the .uz syntax is used to access a field or property of a struct object. In the example you provided, intrpUd is lik...

más de 1 año hace | 1

Respondida
how to copy all the data from a 4284×4 table in the command window when it doesn't all show up?
If you do not wish to export the data and prefer to view the table in MATLAB itself, you can use the clipboard function to copy ...

más de 1 año hace | 0

Respondida
Use if in function to check a number is smaller than given number
After a quick rename of the variables in your code, it will work as we expect it to. The reason is well explained by @Stephen23 ...

más de 1 año hace | 0

Cargar más