Answered
How to convert all csv file to grayscale image and then save them?
T = readtable('file.csv'); V = T.Variables; V = V - min(V(:)); V = V ./ max(V(:)) * 255; Img = uint8(V); Now the matrix Img...

6 years ago | 0

| accepted

Answered
how to convert md5 hash value as binary bits?
With the bold guess, that the input is a base64 string: Out = matlab.net.base64decode('YuRtBM'); Bmat = dec2bin(Out); Bvec =...

6 years ago | 0

Answered
How to start a time step function? SWITCH expression must be a scalar or a character vector.
SWITCH expression must be a scalar or a character vector. The error message tells you, that the 7th input of the function is ne...

6 years ago | 0

Answered
Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 5.872930e-17.
The error message tells you, that your matrix is near to be singular. Then it cannot be converted reliably, because the result i...

6 years ago | 0

Answered
Computer to boost MATLAB operation
You can increase the computing power by a factor of 2 if you invest a lot of money. Improving the code can gain speedups of a fa...

6 years ago | 0

Answered
Matlab Installation Directory Issue
At least some space on the C-Disk is required for working. Perhaps the temp folder is full with files, which are not needed any...

6 years ago | 0

| accepted

Answered
Running Matrix with large amounts of data
Please mention the dimensions of Ui. "300 points" does not clarify both dimensions of a matrix. It helps to help you, if you pos...

6 years ago | 0

| accepted

Answered
Mid point value of a function
T(j+1/2) is not valid, when T is a vector. You need integer values as indices. Perhaps you mean: (T(j) + T(j+1)) / 2

6 years ago | 0

Answered
Iteration without any loop.
Why do you want to do this without a loop? When the purpose is an acceleration, omit the expensive factorial and power operation...

6 years ago | 0

Answered
Changing the type of the built-in function output variable
And another version which is 5% faster than my other answer, if not all 256 possible values are found. If all values appear in t...

6 years ago | 0

Answered
Index in position 2 is invalid. Array indices must be positive integers or logical values.
The debugger helps you to find the problem. Type in the command window: dbstop if error Then run your code again. Matlab will ...

6 years ago | 0

Answered
Changing the type of the built-in function output variable
If you cannot edit the built-in function, write your own one: function YourTest x = randi([0, 255], 1e7, 1, 'uint8'); % For t...

6 years ago | 3

| accepted

Answered
export fig error EPS document
Is "perhaps the folder does not exist" a simple explanation for your problem? Do you expect "graphics/DATA_GK" to be existing? C...

6 years ago | 0

| accepted

Answered
Combining if and for loop
I assume you mean: elseif Acc_1(i, 3) > Threshold3 && ~any(Acc_1(i-20:i+20, 3)) % [TYPO FIXED] [Acc_2, Gyr_2] = ...

6 years ago | 1

| accepted

Answered
How can I get the intensity sum of a circular region around a particular pixel?
If you do have the position of the center and the radius already: % Assuming that img is a 2D matrix/a grey scale image: img =...

6 years ago | 0

| accepted

Answered
Convert all csv in a folder to .mat
Folder = 'D:\YourFolder'; FileList = dir(fullfile(Folder, '*.csv')); for iFile = 1:numel(FileList) % [TYPO FIXED]: [na...

6 years ago | 2

| accepted

Answered
List of version number for each ML version including numbered updates?
You find list e.g. here: https://www.mathworks.com/matlabcentral/answers/492752-table-of-matlab-release-features https://www.m...

6 years ago | 2

Answered
Matlab basic arithmetics error | Sum rounding
Welcome to the world of numerical maths. As Stephen has explained already, calculations with limited precision are expected to h...

6 years ago | 1

Answered
Setting ODE multiple integration start and end times whilst wanting specific intermediate points
The most accurate numerical method is to let the integrator decide for the best step sizes. Then you get the optimal solution be...

6 years ago | 0

| accepted

Answered
Compare Row & only keep the highest value
A = [100, 0.35; ... 200, 0.37; ... 300, 0.42; ... 400, 0.40; ... 500, 0.39; ... 600...

6 years ago | 1

| accepted

Answered
Array indices must be positive integers or logical values error + different number of elements
1st case: for k=2:25 y(k)=-2.75*y(k-1)-y(k-2)+x(k)+x(k-1); end For k == 2, the index y(k-2) is zero. As the error messag...

6 years ago | 1

Answered
How to get the user to select an equation out of a list of equations
input('Str') replies a number. So use input('Str', 's') to get a char vector instead. eos == IG compares elementwise with the v...

6 years ago | 1

| accepted

Answered
Condition to get Matlab and tool boxes for personal use
If you need more details than https://www.mathworks.com/products/matlab-home.html offers, please ask the official sales teams. ...

6 years ago | 0

Answered
uitab Position doesn't update unless drawnow is called while the parent figure is visible
Did you try to create the figure with enabled visibility but outside the visible scrren? d = figure('Visible','off'); origPos ...

6 years ago | 0

| accepted

Answered
Loop on two matrices
TL = [ 21;36;31;8;34;22;14;34;4;51]; TTB = [207;92;133;1;99;1;127;197;228;42]; C = cell(1, numel(TL)); for k = 1:numel(TL)...

6 years ago | 0

| accepted

Answered
Block 'x' does not fully set the dimensions of output 'fr'
On some paths of the code, fr is not defined. So try to initialize it at the top of the code. Notes: temp = zeros(3); % Om...

6 years ago | 0

| accepted

Answered
why do i receive this statement is incomplete?
I get this message, if I run your code: Undefined function or variable 'Pr'. Error in odeequation>@(x,y)[y(2);y(3);((-(y(1)*y...

6 years ago | 0

| accepted

Answered
Is there a way to load data from an Excell file making sure that this is Saved?
This means, that you use Excel as GUI of Matlab. This is a bold approach. What about proramming the GUI in Matlab directly? See...

6 years ago | 0

Answered
Error with uigetfile in an Application
If you select a different folder in the UIGETFILE dialog, this is not inlcuded in the 1st output, but in the 2nd one: [fileName...

6 years ago | 0

| accepted

Answered
Error in Function writing
How do you call this function? Do you start it by pressing the "Run" button? This does not define the inputs. Call this functio...

6 years ago | 1

| accepted

Load more