Answered
unable to perform assignment because the left and right sides have a different number of elements , vect problem
vec_EbN0_dB is an entire vector. On the statement vec_SNR_dB(i) = vec_EbN0_dB + log10( mod_order) you are using the entire v...

1 year ago | 0

Answered
What would cause Matlab to lose track of gcf()?
Unrecognized function or variable 'gcf'. You can get that error if you had previously defined gcf as a variable in your code, b...

1 year ago | 0

| accepted

Answered
Problems applying custom keyboard shortcut for "New Function"
notice that "tools with shortcut" is set to MATLAB Desktop. You will need to set that to include the editor if you want to use t...

1 year ago | 0

Answered
How do you set the focus to a specific uiaxes
Somewhere around R2020b (possibly R2020a) it became possible to axes() the handle to a uiaxes to bring it into focus. (It did n...

1 year ago | 0

Answered
Unable to sending trigger via parallel port
io64 appears to be https://web.archive.org/web/20210903151747/http://apps.usd.edu/coglab/psyc770/IO64.html According to https:...

1 year ago | 0

Answered
error in symbolic convolution using integral and isAlways
normpdf() is not designed to accept symbolic inputs. You will need to re-implement normpdf without the line p(sigma==0 & x<mu)...

1 year ago | 0

| accepted

Answered
The same plotting problem, it is appear that one of the marker does not show on the graph but it should have been properly plot and the legend has shown properly too
The green marker is probably covered up by the legend. [max_a, i_max] = max(angular_a_n); angular_a_n is a vector. max of it i...

1 year ago | 0

Answered
How can I copy a figure to Word when using Online Matlab?
If you use drive.mathworks.com then you can navigate to the Drive location where you stored the figures, shift-click to highligh...

1 year ago | 0

Answered
Necesito calcular valor de š‘¦ para una ecuación matematica de y = a la raiz de un valor usando funciones predefinidas y no se como arrancar
Example: syms x e = exp(sym(1)); y = e + sqrt(x^3 + 5*x^2 + 3*x - 11) subs(y, x, 2.5)

1 year ago | 0

Answered
MATLAB is deleting my negatives in matrix multiplication and i am confused
That code does not generally remove negatives. k1 = randn(4, 4) L1 = [01 01 0 0 0 0 0 0; 0 0 01 01 0 0 0 0; 0 0 0 0 ...

1 year ago | 0

Answered
Variable size signal for integrator in Simulink
Use an iterator subsystem to loop over the vector elements, integrating one by one. https://www.mathworks.com/help/ecoder/ug/fo...

1 year ago | 0

Answered
How to include text in m file as code?
Yes, it is possible. What you need to do is create a function file named data.m that looks something like function datastruct...

1 year ago | 0

Answered
How to use a for loop to get previous values to calculate next one
@Deepak correctly points out problems with indexing at 0 or -1. But that error would have priority . Because that error does not...

1 year ago | 0

Answered
Read/Write Data from .dat file Problem
A = readmatrix('DMIR22345.Dat');%Read first file.dat B = readmatrix('DMIR2235.Dat');%Read sconde file.dat filename = 'Data1...

2 years ago | 0

Answered
Simply trying to find a value in the same row as my known value but in a different column.
rows = ismembertol( A(:,1), value); A( rows, 3) If this does not work, then either A(:,1) is not the same datatype as value, o...

2 years ago | 0

Answered
Find ratio of data
Ratios = YourData(2:end,:) ./ YourData(1:end-1,:);

2 years ago | 1

Answered
Can gamultiobj skip over instances where the function cannot solve?
gamultiobj() is constantly evaluating the objective function over a population of values. It does cross-over and mutation to pro...

2 years ago | 0

Answered
equation as an output
syms a x expr = a*x^2 try f = matlabFunction(expr, 'vars', x) catch ME warning(ME.message) end So you have the pr...

2 years ago | 0

Answered
Can plot markers be specified in an array?
h = plot(x, DATAMATRIX.'); set(h, {'Marker'}, CELL_ARRAY_OF_MARKERS(:)) where CELL_ARRAY_OF_MARKERS must be a cell string with...

2 years ago | 0

| accepted

Answered
How to use matlab in ssh server
There are two possibilities: You can install MATLAB on the server. Then you would copy your MATLAB files and data to the server...

2 years ago | 1

| accepted

Answered
Matlab Support for float32/single and float16/half datatypes in GPU Sparse Matrix Multiplication
This is not scheduled for R2024b. If there is a timeline, then it is not publically available.

2 years ago | 1

Answered
how to velocize execution code
load('matlab_v1.mat') load('matlab_v2.mat') res = nan(size(v1)); res(v1 ~= 0) = 0; res(v2 ~= 0) = 1; res = reshape(fi...

2 years ago | 0

| accepted

Answered
Command Window, display line numbers?
In a fairly limited sense: You can get line numbers of a file that you are displaying. Use dbtype . For example dbtype which.m...

2 years ago | 0

Answered
How to resolve "Out of memory" error?? please look into the following code
If you use something like tspan = linspace(0, 2, 1001); then it should not run out of memory. It is running out of memory try...

2 years ago | 0

Answered
easy way to adjust axis labels to match x inputs
I doubt that is what you really want. figure ax = gca; x = 0:pi/20:3*pi; y = cos(x); plot(ax, x, y); xticks(ax, x); x...

2 years ago | 0

| accepted

Answered
In Matlab 2022b, how to import from guide to app designer
See https://www.mathworks.com/matlabcentral/fileexchange/66087-guide-to-app-designer-migration-tool-for-matlab

2 years ago | 0

Answered
Force saved figure to use a specific number of pixels
You can getframe() and imresize() to a fixed size The results are not likely to be satisfactory. Yes, you would get out the sam...

2 years ago | 0

Answered
Input frame size error - Audio Device Writer Simulink Block
The message is telling you that you must configure for at most 2 seconds of data for each invocation of the block. Normally the...

2 years ago | 0

Answered
Hi! I created a bad script a long time ago (months) and it has essentially destroyed my Matlab Online. I cannot run any other script without that old error occurring
You probably have a third-party function named height that is interfering with correct execution. which height Chances are tha...

2 years ago | 0

| accepted

Answered
Reading Bytes from Arduino to MATLAB
https://www.mathworks.com/help/instrument/serialport.read.html data = read(device,count,datatype) reads the number of v...

2 years ago | 1

| accepted

Load more