Answered
Reading Arduino Serial Port into Matlab and 50% of the time getting characters instead of digits.
It is not documented what the return value is if the reading fails, such as if there happens to be non-numeric bytes in the inpu...

1 year ago | 1

| accepted

Answered
Will leftover CPU cores (not used by parfor workers) be used for built-in multithreading?
No, left-over cores will not be automatically used. They will be left for the operating system to run (whatever) on. If you wan...

1 year ago | 0

| accepted

Answered
Limitations of MATLAB Compiler SDK Free Trial?
Free trials of MATLAB Compiler SDK are 30 days. However, MATLAB Compiler SDK is not available under a Student license. If I re...

1 year ago | 0

Answered
Import data to app during simulation
To Workspace only updates when the simulation pauses or stops. There are no blocks that will update variables in the workspac...

1 year ago | 0

| accepted

Answered
How to solve nonlinear equation system with variable inputs?
syms Eta0 i0 syms w [1 3] syms T [1 3] eqn1 = T(2)/T(1) == i0 * power(Eta0, T(1) * (w(1)-w(3))/abs(T(1) * (w(1)-w(3)))); pret...

1 year ago | 0

Answered
too many outputs for ginput - documentation error?
You are not missing anything. The behaviour of returning both X and Y together in one output is undocumented . (It might perha...

1 year ago | 0

| accepted

Answered
Daily mean through long time
build a timetable() from the data. Use retime()

1 year ago | 0

Answered
i want to iterate for each crack size from 25 to 250mpa with 25 increments
for S = 25 : 25 : 250 and get rid of the S=S+25 and the test for S==250

1 year ago | 0

Answered
How to Discretize a Polygon boundary in to equally spaced points?
See John D'errico file exchange contribution interparc https://www.mathworks.com/matlabcentral/fileexchange/34874-interparc

1 year ago | 1

Answered
.mat file to bin file
Probably something like filename = 'OUTPUTFILENAMEGOESHERE.bin'; [fid, msg] = fopen(filename, 'w'); if fid < 0; error('Failed...

1 year ago | 1

Answered
USRP X310 support in MATLAB
According to https://www.mathworks.com/help/wireless-testbench/gs/supported-sdr-devices.html the USRP X310 is not compatible wit...

1 year ago | 0

Answered
How to set UDP communication in Matlab applications?
%first application system('matlab -batch SecondApplication() &'); pause(10); u = udpport(); write(u, 1:5, "uint8", "127.0....

1 year ago | 0

Answered
Question related to area trapz
If C1/C approaches 0.9 then it is normal that trapz(t,y)/trapz(t,C) would approach 0.9 Let's say that C1 is 8 and C is 10, the...

1 year ago | 0

| accepted

Answered
How to resolve the issue of Y must be a column vector?
IncMdl = fitcensemble(Xinit, Yinit, 'Method', 'Bag', 'Learners', template); The result of fitting with method 'bag' is a Classi...

1 year ago | 0

Answered
Is it possible png to geotiff using mapping toolbox?
Sure. Just use imagefile = [basename '.png']; instead of imagefile = [basename '.jpg'];

1 year ago | 0

Answered
"Too Many Input/Output Arguments" error for nrlmsise00 function
The nrlmsiese00 function at https://www.mathworks.com/matlabcentral/fileexchange/56253-nrlmsise-00-atmosphere-model does not acc...

1 year ago | 1

Answered
Roots of Symbolic Transfer Function
syms s gm1 gmp ro1 rop R2 R1 Cgs Cout Zcgs Zcgd Zcout Z1 Z2 Vinp Vinm Vout1 Vd Vout2 Htf eqn1 = Vout1 == (-gm1*Vinp + gm1*Vin...

1 year ago | 0

Answered
Does upgrading from 2023 to 2024 require a new license key?
Yes, all upgrades to different versions require new license keys. The existing license key covers all releases up to R2023b, bu...

1 year ago | 0

Answered
A composite signal is defined as: x(t) = sin(2*pi*10*t) + sin(2*pi *40*t) + sin(2*pi *60*t) + sin(2*pi *50*t). Separate the four frequencies without using any of the transform techniques.
t = 0:0.001:1; x1 = sin(2*pi*10*t) + sin(2*pi *40*t) + sin(2*pi *60*t) + sin(2*pi *50*t); plot(t, x1) x2 = @(f14) sin(2*pi*f1...

1 year ago | 0

Answered
Conversion to logical from table is not possible
T = regionprops3( BW,'Volume'); regionprops3 always returns a table object. if T==26.67 You are attempting to compare the ta...

1 year ago | 1

Answered
How can Plot in Matlab by exported data in maple?
data = load('ST1.txt'); core = reshape(data(:, 3),100,100).'; subplot(3,1,1) surf(real(core),'edgecolor', 'none') ...

1 year ago | 1

| accepted

Answered
Why the squeeze function squeeze 1x3 array to 1x3, but squeeze 1x1x1x3x1 to 3x1?
"because" It was a design choice for the function. It leaves the array alone if ndims is 2 and otherwise removes all of the s...

1 year ago | 1

Answered
I want to divide an array up into sections and add each section to its own column in a table.
example = rand(85,48); sections = 6; T = cell2table(mat2cell(example, ones(1,size(example,1)), sections*ones(1,size(example,2)...

1 year ago | 0

| accepted

Answered
Geoaxes Interactive Drawing Issue
I suspect the code would look like this: %assumes the geoplot already exists function draw_on_geofigure() fig = gcf; set(f...

1 year ago | 0

| accepted

Answered
I can't open the example on matlab simulink
That example is new as of R2024b. You do not mention which MATLAB release you are using, but there is a significant chance you...

1 year ago | 0

Answered
How to randomly select the datapoints in a vector based on percentage for each group?
Perhaps use randsample n = 4; k = number of samples to generate w = [0.25, 0.30, 0.20, 0.25]; y = randsample(n,k,true,w)

1 year ago | 0

Answered
Assigning vectors to a list of names
It isn't hard. vectors=["name1","name2","name3","name4","name5"]; tname = tempname + ".m"; [fid, msg] = fopen(tname, 'w'); ...

1 year ago | 0

Answered
'parfor' seems to assign jobs of different loopvars to cores beforehand. How may I assign jobs dynamically to speed up calculation?
You can create a parforOptions object specifying RangePartitionMethod "fixed" SubrangeSize 1 and pass that parforOptions object...

1 year ago | 2

| accepted

Answered
How can you use svd() command on an uint8 matrix?
In order to run svd() on a uint8 matrix, you need to run your own svd() function that handles singular value decomposition on a ...

1 year ago | 2

| accepted

Answered
My simple work running Genetic Algorithm with simulink doesn't work, with error 'Unable to resolve the name... '.
By default, To Workspace outputs to the base workspace. Your code assumes that out.ITAE is available in the workspace of the fun...

1 year ago | 0

| accepted

Load more