Answered
Experts, please help to solve: Index in position 2 exceeds array bounds. Index must not exceed 9.Error in (line 30) if drumTable(sound,beat) == 1
if drumTable(sound,beat) == 1 in order to have that test, then beat must not exceed the number of columns of drumTable. You...

3 years ago | 0

Answered
Complex number gradient using 'dlgradient' in conjunction with neural networks
The derivative of C*f(x) can be calculated using the chain rule for multiplication: dC/dx*f(x) + C*df/dx. But when C is constant...

3 years ago | 0

| accepted

Answered
How can I print the information (trainer, etc), I am not allow to used display?
Trai = {'Ash', 11, 5, {'Pich', 'Mozi', 'Thundar'}, 53, 18}; Trainer = struct("Name", [Trai{1}], "Power_Level", [Trai{2}], ......

3 years ago | 0

Answered
How can i write a lower case number and m/s in code for it to work?
u = symunit; syms v_0; eqn = v_0 == 100*u.m/u.s^2 Note: you will only get the nicely formatted output if you are using Livesc...

3 years ago | 0

Answered
Solve function unable to compute algebraic system of equations
syms ms1 mp1 ms2 mp2 g=9.8 isp1=290 isp2=320 deltav1=5000 %%%guess deltav2=9500-deltav1 e1=isp1*g*log((3000+ms1+mp1+...

3 years ago | 0

| accepted

Answered
How can I put images in a table using gui?
If you use traditional figures with traditional uitable() objects, then Yes, it is possible. What you do in such cases is use ...

3 years ago | 1

Answered
Experts, please help me to fix the below errors: Warning: Data clipped when writing file. > In audiowrite>clipInputData (line 474) In audiowrite (line 245) In ass1 (line 48)
Your 4th column of drumtable has 6 non-zero entries, one for each instrument. So in your 4th stretch you are adding together sni...

3 years ago | 0

Answered
Frame diminesions do not match in R2016a using getFrame function but same code executed in R2015b produces frames that have matching dimensions
When you have an axes, the drawable width of the frame can vary a few pixels smaller or larger, depending on the current axis ti...

3 years ago | 0

Answered
Zoom figure generated by 'patch'
Internally, zooming is accomplished by changing the axis XLim and YLim properties. The zoom-with-mouse tools come down to changi...

3 years ago | 0

Answered
How can I calculate the modulus and argument for every point in a plot?
[theta, r] = cart2pol(X, Y);

3 years ago | 1

| accepted

Answered
Why my code miscalculates conversions?
if strcmp(user_input{2},'C') t1= str2double(user_input{1}); That statement is executed any time the second input is 'C' e...

3 years ago | 0

| accepted

Answered
Storing x and y data calculated in loop as arrays to be used in the creation of a table.
M = table(); for K = 1 : 3 X = randi(9, 5, 1); Y = randi(9, 5, 1); thisM = table(X, Y); M = addvars(M, thisM, ...

3 years ago | 1

| accepted

Answered
How can we generate complex signal data and save it to a file?
N = 10; example_data = randn(N,1) + 1i * randn(N,1) writematrix(example_data, 'YourTextFile2.txt') dbtype YourTextFile2.txt...

3 years ago | 0

| accepted

Answered
Help solving this integral equation?
syms E E_F E_t eta_total k N_0 N_t t N_T = N_t * exp(-E.^2/(2*E_t^2)) f = 1/(1+exp((E-E_F)/(k*t))) eta_mobile = int(N_0 * f,...

3 years ago | 1

| accepted

Answered
Inconsistent dimensions of arrays
Your theta is on the order of 625 elements long. What size are you expecting sin(theta) to be? What size are you expecting 0.5 0...

3 years ago | 0

Answered
Reading a text file with variables and parentheses between
S = fileread('YourFile.txt'); S = regexprep(S, '\)', '%g\n)'); newS = compose(S, ValuesForSpecies4); fid = fopen('NewFile...

3 years ago | 0

Answered
programmatically determine the "variablenamesline" value for import options.
readmatrix() of the file. Use rmmissing() to remove the header lines (which would have mostly translatted into NaN)

3 years ago | 0

| accepted

Answered
Unable to resolve the name 'comm.PolarEncoder'.
I do not find any reference to functions with those names, not anywhere. The 5G Toolbox has nrPolarEncoder and nrPolarDecoder, ...

3 years ago | 0

Answered
Replace a character in a Table
You can use https://www.mathworks.com/help/matlab/ref/matlab.mixin.customcompactdisplayprovider-class.html to customize the way ...

3 years ago | 0

Answered
Reading csv or excel file with three headliners
filename = "smartflux.csv"; That is a basic filename without any directory information. filepath= 'G:\Shared drives\Project_Cr...

3 years ago | 0

| accepted

Answered
UNABLE TO PERFORM THE ASSIGNMENT
@yogeshwari patel Your equation has no solutions, at least not for i = 1:2 . Your T values come out 0 when i = 1. That leads t...

3 years ago | 0

| accepted

Answered
Should equationsToMatrix handle inequalities?
syms x y EQ(1) = x + 2*y < 3; EQ(2) = x + 2*y <= 3; EQ(3) = x + 2*y >= 3; EQ(4) = x + 2*y > 3; EQ(5) = x + 2*y == 3 EQ(6) ...

3 years ago | 1

| accepted

Answered
error in loading data from a sheet in .xlsx format
you do not have a sheet named "1", you have a sheet named "Mechanical Propulsion System". That sheet is index 1, not named "1". ...

3 years ago | 0

Answered
How to remove error form code.
taylor() accepts at most 3 positional parameters. In order to indicate the order of approximation you must use a name/value pair...

3 years ago | 0

Answered
How to use the smooth function in the web app?
https://www.mathworks.com/help/curvefit/smooth.html The smooth() function from Curve Fitting Toolbox cannot be compiled. The ...

3 years ago | 0

Answered
HELP Optimize code by returning to line 1 if condition not met.
There are a few different logic structures you can use. you can start with while true . At some point test whether the variable...

3 years ago | 0

Answered
Construct a histogram manually and calculate the average of data contained in each bin
ztemp - zmin can be 0, and floor() of the difference can certainly be 0, so your bin_id can be 0. However you use bin_id as an i...

3 years ago | 0

Answered
Can you help me to use function fsolve to calculate costs?
[x, fval, exitflag, info] = fsolve(F, x0, options); number_of_info.iterations However, nothing is recorded about the "cost" of...

3 years ago | 0

Answered
indicating an error occurred using application in MATLAB app creator
In the case where an "error" occurs in the sense of trying to assign the wrong number of values, or subscript out of range, then...

3 years ago | 1

| accepted

Answered
Output video file name to Excel with other data from process results
In order to put text into the same array as numeric data and use writematrix() to write it all out... then you will need to conv...

3 years ago | 0

Load more