Answered
Number of bits per symbol (m) range in Reed-Solomon coding
What am I supposed to do if I want to construct a message with length of 20 (as an example) and each symbol has bit (i.e., 0 or ...

1 year ago | 0

Answered
what is the process to store the "gaborMag,[]" into a variable like x?
I suspect that you are asking how to store the output of imshow(gaborMag,[]); into a variable such as x. The answer is gM_sc...

1 year ago | 0

Answered
How to effectively solve the problem of incompatibility of AppDesigner using symbol toolkit syms after packaging and publishing into exe and other executable files?
Break your code up into pieces. In the first piece, write your symbolic calculations in terms of constants and symbolic variabl...

1 year ago | 0

Answered
Can I call a function from another function and not come back?
You have a small number of possibilities: set(0,'Rec​ursionLimi​t',N) -- change the recusion limit write a third function that...

1 year ago | 0

| accepted

Answered
How to turn a movie into a gif?
Before the for i loop insert filename = 'Output.gif'; Change F(i)=getframe; to F(i)=getframe; if i == 1; SZ = size(F(...

1 year ago | 0

Answered
waitfor( ) isn't working for a SerialPort
waitfor(app.PicoCom, 'NumBytesAvailable', 0); % wait until it's REALLY done

1 year ago | 0

| accepted

Answered
Error using plot Invalid data argument.
I would guess that you need plot(categorical(x), y) and plot(categorical(x), z)

1 year ago | 0

Answered
"Unable to compute number of steps from 0 to n by 1" error for symbolic integration
syms z positive syms b positive %... F(z,u_f,lam_f,sigma,ep,b,d)=vpaintegral(nCk(n,0:n,z),alpha,b, z); You are trying to vpa...

1 year ago | 0

Answered
Extracting the base name and size of symbolic variables
syms a [3 3] real That is equivalent to a = sym('a', [3 3], 'real') mu(x) = (r.*x).*(1-a*x) When scanning that code, the va...

1 year ago | 0

Answered
Error using inputdlg() second time through same code
Options=['YES','NO'] ['YES','NO'] is a request to horzcat('YES', 'NO') which gives the single character vector result 'YESNO' ....

1 year ago | 0

| accepted

Answered
fprintf not printing to command window when asking for input.
Is it possible that you are using LiveScript ? When you use LiveSript, the output of fprintf() goes to the script window rather ...

1 year ago | 0

Answered
Confusing interaction between "Callback" and "KeyPressFcn" for "edit"-style UIControl
Changing the String property of a uicontrol is not reflected on the display until the user presses Enter or moves the focus away...

1 year ago | 1

Answered
Matlab Petrel 2018 connector
You can request the support package for Petrel at https://www.mathworks.com/campaigns/offerings/matlab_interface_for_petrel.html...

1 year ago | 0

Answered
Asking for help with variables
% Interplaca T = table(); T.b_inter_PGA = regress(data_inter.res_PGA, X_inter); T.b_inter_PGV = regress(data_inter.res_PGV, X...

1 year ago | 1

Answered
How to fix this Error? __ No constructor 'handle.listener' with matching signature found.
Try changing it to list = [... listener(axlisth,findprop(axlisth(1),'OuterPosition'), ... 'Proper...

1 year ago | 0

Answered
How can I copy figures from sisotool?
These days, if you hover inside the axes near the top of the plot, several ghostly tool icons will appear. Left-click the leftmo...

1 year ago | 0

Answered
How to fix error in matlab code for the assignment of path?
If it happened that there was a function named baseSNAP, and you have a call to that function, and as well you later assign to a...

1 year ago | 0

Answered
How do I print a % character into a file
Either fprintf(app.SessionFile,"%s",str); or fwrite(app.SessionFile, str); Note: your str does not appear to include newline...

1 year ago | 0

Answered
Data is not storage when running loop
You set your various arrays conditionally. We should not be surprised if the arrays come out different lengths. You do not cl...

1 year ago | 0

Answered
Colon operands must be real scalars
The colon operator has always been defined as using the first element of each operand. The change is that soon using non-scala...

1 year ago | 1

| accepted

Answered
How can I read an image of size 2048*2048 pixels using Matlab 2013 by the "imread()" command ?
You just imread() the file. .bmp - limit 32767 x 32767 .gif - limit 65535 x 65535 .jpg - limit 65535 x 65535 .png - limit 10...

1 year ago | 0

| accepted

Answered
Graphics Incompatibilities in Control System Toolbox between R2024a and R2024b
The hack for R2024b is: yticks(gca().NodeChildren.Children, [])

1 year ago | 0

Answered
Open Script Layout Error
First of all, I can tell that you have the editor docked: if you had it undocked then there would be a toolstrip or the decorati...

1 year ago | 0

Answered
How can I fix this error:"Error using matlab.io.datastore.TransformedDatastore/subset Expected indices to be an array with all of the values <= 574."
tDS happens to have 574 elements. You are asking to subset it at locations given by testIdx_all Unfortunately, testIdx_all has...

1 year ago | 0

Answered
How to log the data in the workspace without modifying the content of the for loop?
Your structure reminds me of using SPMD together with spmdSend and spmdBarrier (formerly labSend and labBarrier) But your struc...

1 year ago | 0

Answered
Matlab code to find the Wave height
image_height = min(sum(cumprod(~binaryImage, 1),1) + 1); or possibly image_height = min(sum(cumprod(~flipud(binaryImage), 1),1...

1 year ago | 0

Answered
Error handling with graphical user interface
When you create a GUI, any try/catch you have only applies to code that is run directly from the try/catch block. The try/catch ...

1 year ago | 0

| accepted

Answered
IMCLIPBOARD in R2025a
The R2021a release notes say Java Packages to be removed Share Java® packages and subpackages that currently ship with MATLAB...

1 year ago | 0

Answered
clearvars function in simulink function block
Compiled models use static allocation for global variables. Asking to clear the global would be asking to release the static mem...

1 year ago | 1

Answered
Best fit line for scatter data along y=x line
m = (y2 - y1) ./ (x2 - x1); b = y1 - x1 .* m; LD1= load('uu.mat'); uu = LD1.uu; LD2 = load('PntP.mat'); x = LD2.PntP(:,...

1 year ago | 0

Load more