Answered
How to have Matlab read files and then record the title of the file as a variable?
S = {'58.94177000.dpmrpt', '62.586.dpmrpt'} [~, timepart, ~] = fileparts(S)

4 years ago | 0

| accepted

Answered
display data in text field MATLAB app designer
What is the point of the disp() there? Inside the loop, you are changing all of the value of the text area, overwriting what w...

4 years ago | 0

| accepted

Answered
Issue in plotting equation (Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 3-by-1.)
Your equation is a cubic. vpasolve() is going to return all three values. phit=0.026; Nd1=1e19; ni=1.5e10; ni=1.5e10; ...

4 years ago | 0

Answered
App Designer - "is already defined as a property"
Yes, there is a reason ;-) The properties section is not pure executable code. Each statement of the property section defines a...

4 years ago | 0

Answered
Plot confusion matrices in proper way
W1row = [0.96, 0.1, 0, 0, 0]; W1row_text = compose("%0.02f", W1row); W1row_x = 0.5:1:4.5; W1row_y = 0.5 * ones(1,length(W1row...

4 years ago | 0

Answered
Index in position 1 is invalid. Array indices must be positive integers or logical values.
for i=1:length(waktu_kedatangan_pasien_ke_transisi) i starts out at 1. for nn=1:jumlah_tempat_tidur_transisi if k...

4 years ago | 0

Answered
How do I filter my accelerometer data so that when I integrate it I have no drift?
I need to design a filter in order to avoid drift That is not going to work. Errors in accelerometers are not symmetric. Any sy...

4 years ago | 1

Answered
Variable amount of nested sums
See https://www.mathworks.com/matlabcentral/answers/623358-get-a-combination-of-unique-paths-for-given-pair-of-numbers#comment_1...

4 years ago | 0

Answered
How can I overcome a persistent mxArray error in Simulink (MATLAB Function Block)?
If you were able to convert over to using Interpreted execution mode, then that would be something that you would not be able to...

4 years ago | 0

Answered
I want to fix this Error : Out of memory. The likely cause is an infinite recursion within the program.
function [sol]=numintla(fun,n) [xx,w]=gaussla(6); % Call the gaussla.m file sx=size(xx,1); sol=numintla('sin(x)',6); Suppose...

4 years ago | 0

Answered
How to fix 'Index exceeds the number of array elements. Index must not exceed 1.'?
You never assign to T1(2) so when i becomes 2, T1(i) becomes out of range. You do create T1_new but you do not use it to update...

4 years ago | 0

Answered
'CheckpointFrequency' is not an option for solver 'sgdm'.
CheckpointFrequency was added as an option in R2022a. You should be checking the documentation related to your release, https:/...

4 years ago | 0

| accepted

Answered
am I looking for the add-on name in which the smooth_basis command is present?
https://r-forge.r-project.org/scm/viewvc.php/pkg/inst/Matlab/fdaM/?root=fda&pathrev=524

4 years ago | 1

| accepted

Answered
Empty Sym 0-by-1
It is not completely correct to say that du has no zero, on the basis that the numerator is independent of u. You must look at t...

4 years ago | 0

Answered
why use limit function goes wrong
Asking for the "right" limit means that you want the limit from above. As you are asking for the limit at infinity, that would b...

4 years ago | 0

| accepted

Answered
Getting distance of centroids from each other.
use pdist()

4 years ago | 0

| accepted

Answered
Create a 3D plot
axis equal xlim([-1, 1]); ylim([-1, 1]); zlim([-1, 1]); T = -1:.5:1; xticks(T); yticks(T); zticks(T); grid on view(3)

4 years ago | 0

| accepted

Answered
How to implement the fwrite function as in C language?
"I want to know if it is possible to implement the fwrite function same as the C language fwrite." No, it is not possible in ...

4 years ago | 0

| accepted

Answered
How to read a character from a script and extract the number in the same line.
In MATLAB statements, there are four ways that = can be used: there can be a simple or indexed variable or list of simple or in...

4 years ago | 0

| accepted

Answered
How to limit the output decimal places?
The format command does not affect the Variable Browser. The format for the variable browser can be changed for each variable....

4 years ago | 0

Answered
Get error for fit function (surface) in matlab2021
I suspect that you do not have the Curve Fitting Toolbox installed.

4 years ago | 0

Answered
Parallel Toolbox + net.cdf: net.cdf function works with for, but not with parfor?
matlab.internal.imagesci.netcdflib() creates internal resources that are not automatically copied to workers. See https://www.m...

4 years ago | 0

| accepted

Answered
VGGishPreprocess too many output arguments
When you use openExample('deeplearning_shared/TransferLearningUsingVGGishExample') then there is a function vggishPreprocess t...

4 years ago | 0

| accepted

Answered
Error using reshape-I'm not sure whats causing the issue
@(t)reshape([0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,(sqrt(1.0e+1).*sin(sqrt(1.0e+1).*t.*(7.0./2.0e+1)))./7.0,0.0,0.0,0.0,0.0,0.0,0....

4 years ago | 0

Answered
How to create a 3 * 3 * 1 array using ones or zeros?
A = zeros(3,3) [size(A,1), size(A,2), size(A,3)] so using size() says that A is length 1 on the third dimension. If you neede...

4 years ago | 0

Answered
How do I extract frames iteratively?
% Import video file obj = VideoReader('D:\Spring 2022\MARS Capstone\Trimmed Videos\Reef 1\GH010063.MP4'); % File format of the...

4 years ago | 0

| accepted

Answered
i have qaustion but the problem i am not geting the same answer
Look very carefully at the first equation. , , , But what you implemented instead was , , , Notice that the actual last term...

4 years ago | 0

Answered
Binary file size resets to zero after every iteration
'w' and 'W' access both request that the content of any existing file is deleted. You need 'a' (append) access.

4 years ago | 0

| accepted

Answered
eqauttons solveing non linear why i am geting this error
syms x y eqn = [x + y == 1000,0.4818*10^-7*x^4 - 0.9089*10^-4 + 0.6842*10^-1*x^2 - 0.2106*10^2*x + 9860 == 0.9592*10^-7*y^4 - 0...

4 years ago | 0

| accepted

Answered
Why this ode45 solver gives NAN as output for f ?
nT = sum(f(1):f(5)); That code means that the first value of the f vector should be looked up, and the 5th value of the f vec...

4 years ago | 0

Load more