Answered
How do I save adw modified audio to a wav file
Use dsp.AudioFileWriter Note: in your current code, the y that you audiowrite() would represent only the last buffer-full of da...

1 year ago | 1

Answered
I wanna solve to solve
The fundamental problem here is that when you use the old form of solve that used quoted expressions, that variables defined in ...

1 year ago | 0

Answered
creating spatial heat map in matlab for one variable with x,y coordinates
You tried to calculate the pairwise distance between 112899 points . The way your code is structured, that involves building a 1...

1 year ago | 0

Answered
I am trying to run an code an shows Number of elements must not change. Use [] as one of the size inputs to automatically calculate the appropriate size for that dimension.
N = round(double([f_x; b_x])); M = round(double([f_y; b_y])); We are not given any information about the sizes of f_x or f_y o...

1 year ago | 1

Answered
Latin Company Name.
"Latin Company Name" is the internal name Mathworks gives to "Company Name" fields on various sign-up forms, such as https://www...

1 year ago | 0

Answered
Cómo podría agregar una restricción sobre una variable dependiente en lugar de los parámetros a optimizar?
You would use the nonlcon parameter to add constraints. You would likely use a function to calculate size of the fifth crystal...

1 year ago | 0

| accepted

Answered
Serial: Real-time plotting and storaging streaming data from Arduino slowing down badly over time
Table = [Table; newLine]; Each time that statement is executed, MATLAB needs to examine...

1 year ago | 0

Answered
Input for ARfit ? (EEG analysis)
What I have is a vector where the rows are the EEG channels, and the columns are the signal values for each data point. Your in...

1 year ago | 1

Answered
MATLAB symbolic definite integration error while taking symbolic function as input arguments
syms a v T disp(int(@(tau) tau*v, 0, T)) disp(int(@(tau) tau*a, 0, T)) Notice that in the first case, it integrated with resp...

1 year ago | 1

Answered
Scatter fails if all elements but one at index(1,1) are nan.
This is fixed in R2023b (maybe slightly earlier) There does not appear to be any public bug report about this.

1 year ago | 0

| accepted

Answered
How to display color intensity contour of gray scale image
Converting to gray is rgb2gray Displaying the image in the indicated way would probably be surf followed by a colormap call.

1 year ago | 0

Answered
Double integral problem with function handles to make the program faster instead of using symbolic
ksi and ita are undefined at that point. If you define them with syms then the integration works. syms ksi ita i=3; %actually ...

1 year ago | 0

| accepted

Answered
Why do i get the error (Array indices must be positive integers or logical values) when trying to calculate the determinant
det = det(M) There would not be any error the first time you ran that code. The first time, det would refer to the det determin...

1 year ago | 2

Answered
How to solve a task within Machine Learning Onramp Course?
You did not add a local function named extract to your file. A "local function" is one that is placed at the end of your code, s...

1 year ago | 0

| accepted

Answered
trying to speed up image exports
This test suggests that writing to ppm might potentially be faster, with writing to JPEG2 being notably slower. data = randi([0...

1 year ago | 1

| accepted

Answered
Multiple nested for loops for machine learning model hyperparameters
for j =1:length(nfilterSize) %j is active at this level for k = length(nnumBlocks) %j and k are active at this level ...

1 year ago | 0

| accepted

Answered
CUDA seems not to be supported
There is a difference between the toolkit version and the nvcc version. The toolkit version is essentially the driver version th...

1 year ago | 0

Answered
I am not able to debug my script as follows
PaAVE1=(Pa1+Pa2)/2; You assign to PaAVE1 but you do not use PaAVE1 afterwards cPaAVE1=C*PaAVE; No variable PaAVE is defined. ...

1 year ago | 0

| accepted

Answered
"For Iteration" output index appears to perform parallel selector indexing in series instead
It sounds as if you have something of the form for J = 1:length(FirstVector) %some operation end for K = 1:length(Second...

1 year ago | 0

Answered
Error install_mex while using OMEGA add-ons
Those are warnings. It is optional to compile in OPENGL support. It is optional to compile in ROOT support. ROOT support is to...

1 year ago | 0

| accepted

Answered
Can MATLAB be used to call excel, calculate outputs, and place back into MATLAB Workspace iteratively in for loop?
Spreadsheet Link is for running MATLAB from within Excel, but you want the opposite, to run Excel from within MATLAB. Running E...

1 year ago | 0

Answered
How to generate a .dat from i q data?
Probably it goes something like this: filename = 'OutputFileNameGoesHere.dat'; [fid, msg] = fopen(filename, 'w'); if fid < 0 ...

1 year ago | 0

Answered
How to distribute runtime input values to two vectors?
You would use something like a = [a, i(n)]; ... making sure that you had initialized a before the loop.

1 year ago | 0

Answered
Zero pad using piecewise.
piecewise() requires that the first input be a symbolic expression. Your Vr+Va is likely numeric.

1 year ago | 0

Answered
Length command giving rise to array indices must be positive integers or logical values error
You start out by using the length() function call. But then you assign something to length(1) . That makes length into a variabl...

1 year ago | 1

| accepted

Answered
Maximum time of tic-toc function
To measure time, you could instead initialize a variable to the current time, and then elapsed_time = datetime('now') - base_t...

1 year ago | 1

Answered
Question about the syntax of a MATLIB code line creating one array from another
To answer this, you have to know that the result of indexing a column vector with a single vector is a column vector, and the re...

1 year ago | 0

Answered
Symbolic toolbox expressions in table() not shown as LaTeX in livescrit.
Correct. table() is not designed for fancy display formatting.

1 year ago | 0

Answered
Sparse matrix memory understanding
Sparse memory storage starts with a vector of pointers, with one element per column. The pointer content is 0 (NULL pointer) if ...

1 year ago | 0

Answered
Check for missing argument or incorrect argument data type in call to function 'expand'
I get the following : B = 1.0e+07 * 0.0000 0.0003 0.0103 2.5110 2.6503 -0.0500 Give the command format long g and display the...

1 year ago | 0

Load more