Answered
Can't find uninstall option in MATLAB folder
"it does not show up in control panel uninstall options." Which Matlab version? When I click on Matlab in the control panel "Pr...

5 years ago | 0

Answered
How to assign value to a variable?
How do you want to select the subjects randomly? How does the users select a folder? The current explantions are too vague for ...

5 years ago | 0

Answered
Index in position 2 exceeds array bounds (must not exceed 1).
There is no indexing in the line R = (E*b).*((A-Ai).^n).*t So please post a copy of the complete error message and chgeck agai...

5 years ago | 0

Answered
How to export multiple tables within a cell array with a foor loop
Folder = 'C:\Where\To\Write'; for k = 1:numel(YourCell) File = fullfile(Folder, sprintf('measurement_%d_table.csv', k)); ...

5 years ago | 0

| accepted

Answered
Plot function y=(sin(x))/x for pi/100<=x<=10pi using increments of pi/100
"pi/100<=x<=10pi using increments of pi/100" x = pi/100:pi/100:10*pi; The rest is trivial. Please try it. In case of problems ...

5 years ago | 0

Answered
How do i make a variable range for xlswrite?
Range = sprintf('C1:D%d', n); xlswrite(filename,A, Range) By the way, there are many submissions in the FileExchange to create...

5 years ago | 0

Answered
how to uplad and process multiply images
See FAQ: How to process a sequence of files Folder = 'C:\You\Base\Folder'; FileList = dir(fullfile(Folder, '*.jpg')); % Use *...

5 years ago | 1

| accepted

Answered
How to differentiate distance in relation to time?
Your observation "the values are way to small" is the right way to find the problem. Find out the factor by which the result is ...

5 years ago | 0

| accepted

Answered
How to multiply matrix with vector?
N and M are vectors (2x5) A, B and D are matrices of their own (3x3) Then the equation [E;K] = [A, B; B, D]^-1 * [N;M] is not ...

5 years ago | 0

Answered
Using 2 values on for loop doesn't work correct for me
Cute. What is the purpose of for r = 0:0.5:12, e = 0:0.5:10; ? This runs a for loop and creates a vector e with the value 0:0...

5 years ago | 1

Answered
Suggestions for improving efficiency of code
You can replace: tf = isa(filenames,'char'); if tf == 1 filenames = {filenames}; end by filenames = cellstr(filenames)...

5 years ago | 1

| accepted

Answered
Index in position 1 exceeds array bounds
The error message is clear: The data imported from the Excelfile have 25 rows only. Then you cannot obtain the rows 26:325

5 years ago | 0

Answered
Different groups of 1s
See FEX: RunLength If speed matters, compile the c file according to the instructions. If the problems are such tiny, it is suf...

5 years ago | 0

| accepted

Answered
rename plot names in a loop
Store the handles of the figures in a vector: FigList = gobjects(1, 3); for k = 1:3 FigList(k) = figure; end % Then the...

5 years ago | 1

Answered
how to increase the run time of the matrix ?
Some standard ideas for improving the runtime: sqrt(X) is faster than X^0.5 The JIT acceleration is more powerful, if you writ...

5 years ago | 0

Answered
Wrong result given by matrix multiplication
The behavior is not weird, but Matlab calculates the correct results. If your manual computations give you another result, the e...

5 years ago | 0

| accepted

Answered
how to solve non linear simultaneous ordinary differential equation?
How did you call the function? Using the green triangle in the editor? Then no inputs are provided. The posted code consists of...

5 years ago | 1

| accepted

Answered
Advice using function titles with abs command and plotting with function command
If f the values t == pi and t == -pi are excluded also. Is this wanted? Do you want f to accept vectors for t? Then: function ...

5 years ago | 0

Answered
How can use while loop in this case.
As far as I can see, K and L are scalars. Then replace: while all(K, L) < p by while K < p & L < p

5 years ago | 0

Answered
Running a script for several images
See: https://www.mathworks.com/matlabcentral/answers/57446-faq-how-can-i-process-a-sequence-of-files

5 years ago | 1

Answered
keep the same row data from two matrix
This is a job for intersect or ismember. [~, ia, ib] = intersect(a(:, 1), b); c = [b(ib), a(ia, 2)]

5 years ago | 0

Answered
how I can do for the background of panels and texts will be semi transparent ?
As far as I know this is not possible in Matlab. I've simulated it using the OpenGL renderer and drawing all objects with patch ...

5 years ago | 0

| accepted

Answered
Multiple Sum of Series in a Variable - Syntax Problem
Why do you try a symbolic sum, when your input is numerical? Here a numerical summation: function a = Example(dat) x = log10(d...

5 years ago | 0

| accepted

Answered
Use fzero but I have arrays
This is not a smooth curve. It will be more or less arbitrary, which function you will fit to the data. A linear interpolation o...

5 years ago | 0

Answered
Matrix Dimensions must agree
f and t have a different number of elements. Then f .* t is not defined. You did not tell us, what you want to achieve, but per...

5 years ago | 0

Answered
Concatenate variables by searching mkdir folder and adding to string, n+1
Create a dedicated function for this job: BaseFolder = fullfile( 'C:\', 'Users', 'User', 'Desktop', 'Data'); ... Circle...

5 years ago | 0

| accepted

Answered
Can I tell Matlab not to use contiguous memory?
Is there any way to tell Matlab (via startup switch or other option) to allow variables to be stored in fragmented physical memo...

5 years ago | 1

Answered
Splitting and Saving multiple images
Then do not use n as counter, but another one: iFile = 1; ... base_name = sprintf('%s_%i.jpg', org_name{end}, iFile); ...

5 years ago | 0

| accepted

Answered
array2table won't accept variable name input
Which Matlab version are you using? In the current version 2021a I find: doc table % Variable names can have any UnicodeĀ® char...

5 years ago | 0

| accepted

Answered
App designer - issue with app freezing after performing the first task
Appending folders to Matlab's PATH can lead to unexpected side effects, if the folders contain Matlab files. So avoid addpath bu...

5 years ago | 1

Load more