Answered
Import part of dataset in a HDF5 file, by 'member' and/or 'logical array'
<https://fossies.org/linux/hdf5/examples/h5_compound.c> The approach seems to be to use the H5T utilities to create a prototy...

4 years ago | 0

Answered
Missing Library in Simscape
https://www.mathworks.com/help/physmod/sps/ref/thermistor.html You are looking in Simscape Electronics, but you should instead...

4 years ago | 0

Answered
How to iterate until a point satisfies a certain condition?
You could simplify by using graph() objects https://www.mathworks.com/help/matlab/ref/graph.html The points to be removed are ...

4 years ago | 0

| accepted

Answered
matlabFunction() generating intermediate terms that place the integrand outside integral()
You are correct, that is a known bug in your release, and there is no solution in your release.

4 years ago | 0

Answered
CUDA for M1 MacBook Pro
No, there is no way to install CUDA for any of the ARM-based Apple Systems -- not even through Rosetta 2 translation. Last I he...

4 years ago | 1

| accepted

Answered
Why do my functions suddenly return values in ASCII code?
You accidentally used "command function equivalence". When you name a function without using () then the arguments you input are...

4 years ago | 1

| accepted

Answered
how to specify the input and target data
filename = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/1038775/bankruptcy.csv'; opt = detectImportOptions(f...

4 years ago | 0

Answered
Making use of multiple harddrives to avoid IO bottlenecks?
You should ideally distribute the data to different drives and distribute the drives to different controllers. However you mi...

4 years ago | 1

| accepted

Answered
Indexing parts of a string that occur in every x characters
convert the string to char, reshape to 144 rows, extract row 17:17+8-1, all columns. You might want to transpose the result from...

4 years ago | 0

| accepted

Answered
out of memory error
https://www.technologyreview.com/2011/08/25/191690/ibm-builds-biggest-data-drive-ever/ IBM has a 120 petabyte drive. That is a...

4 years ago | 0

Answered
How to read data from serial communication sensor "imu GY-951 9 dof" by using Arduino in MATLAB?
https://www.mathworks.com/matlabcentral/fileexchange/71627-sparkfun-9dof-razor-m0-imu_gui https://github.com/Razor-AHRS/razor-...

4 years ago | 0

Answered
How to connect Arduino to Matlab in order to read IMU data
In that release you would use serial() to connect to the COM port, fopen(), and then start fscanf() to get numeric values. In...

4 years ago | 0

Answered
how can i plot this function?
0.01 minus 0.047 is negative. negative raised to 3/2 is complex. Your x are non-negative real but your fi1 are a mix of real and...

4 years ago | 1

Answered
Basic Code Generation Failed when I run the command : coder.checkGpuInstall
GPU Coder needs VS 2019 for r2022a, and does not support VS 2022 for R2022a

4 years ago | 1

| accepted

Answered
whats wrong with this line of code? y = 10*cos*(2*pi*n/20)*cos(2*pi*n/4)*usD(n);
You have cos*(something), which is a request to take cosine of no parameter and multiply the result by (something) . The * shoul...

4 years ago | 1

Answered
error in figure print
You have two calls to sprintf in which you ask to format gcf Change those two gcf to be double(gcf)

4 years ago | 1

| accepted

Answered
Hi i have a problem i got this error while making program which detect face mask Index in position 1 exceeds array bounds. Error in maskdetection (line 21) rectangle('Pos
rectangle('Position',NB(i,:),'LineWidth',3,'LineStyle','-','EdgeColor','b'); if isempty(NB) nf=true; end ...

4 years ago | 0

Answered
how can i draw some points but diferent colors depends of a condition?
if 0<d(p)<=10 MATLAB interprets that as if ((0<d(p))<=10) The first comparison is made, 0<d(p) giving you a response of 0 (fa...

4 years ago | 0

| accepted

Answered
Real Time data from matlab to arduino
If you look at https://github.com/labstreaminglayer/liblsl-Matlab/blob/master/examples/ReceiveData.m where it has while true ...

4 years ago | 1

| accepted

Answered
How to explicit a cell array into a table
vlens = cellfun(@length, T.Verification); maxvlen = max(vlens); T.Verification = cellfun(@(C) [C;strings(maxveln-length(C),1)]...

4 years ago | 0

Answered
Parallel computing toolbox
If you parfeval() a series of processes, then you can wait for the first one to finish, and then cancel() the rest. Note that i...

4 years ago | 0

Answered
7 equation non linear system converge too slow
% voltage value Eoc=18.09; v2=13.69; v3=12.73; v4= 11.31; v5=10.22; v6=9.71; v7=8.91; v8=8.41; % current value Ifc2=1;...

4 years ago | 0

| accepted

Answered
How do I convert a "py.int" into a string?
https://www.mathworks.com/help/matlab/matlab_external/passing-data-to-python.html?searchHighlight=py.int&s_tid=srchtitle_py.int_...

4 years ago | 0

| accepted

Answered
how to assemble a symbolic series?
In the case where what you care about is the decimal output, and not how it is arrived at, then: b = [0 1 0 1 1 0 0 0 0 1 1 1 0...

4 years ago | 0

Answered
Solving a System of Trig Equations
syms a1 a2 syms theta1 theta2 x y eqn = [x == a2*cos(theta1+theta2) + a1*cos(theta1) y == a2*sin(theta1+theta2) + a1*s...

4 years ago | 0

Answered
Unable to perform assignment because the left and right sides have a different number of elements. Error in sym/privsubsasgn (line 1307) L_tilde2 = builtin('subsa
u = -100:10; vector f(X) = (X.*exp(2.*(1-a)./(2+(1-a).*u.*X)))./(((2-a.*u.*X).^(a.^2)).*(2+(1-a).*u.*X).^(1-a.^2)); ...

4 years ago | 0

Answered
why this Warning message occur: Support for GPU devices with Compute Capability 5.0 will be removed in a future MATLAB release? how can fix it?
You have several options: * you can upgrade your gpu hardware to Pascal architecture or later * you can wait a couple of rel...

4 years ago | 0

Answered
precision of double variables
Suppose you were using decimal to 4 decimal places. 1/3 == 0.3333 1/3 + 1/3 = 0.3333 + 0.3333 = 0.6666 2/3 = 0.6667 b...

4 years ago | 1

| accepted

Answered
Unable to resolve the name data.Time.
duration() the column. seconds() to get a numeric value.

4 years ago | 0

Answered
Is there a difference in the output values of the functions fft vs fft2 vs fftn
For a 3d matrix, the code for fft2 is literally fft(fft(x,[],2),[],1) For a 2d matrix, fft2 calls fftn The only rema...

4 years ago | 0

| accepted

Load more