Answered
Add values to a struct element inside a loop
A = 1:5; B = [1 2 3 4 4 5 4]; C = [10 10 10 10 20 10 30]; E = cell(length(A),1); a = 'fieldname'; for k = 1:len...

8 years ago | 0

Answered
Different color for Listbox items
I recommend to take the time and ask an internet search engine for : "Matlab listbox color". You will get links like: * <http...

8 years ago | 1

Answered
Matlab VideoWriter is very slow
Matlab is not the perfect tool for cropping MP4 files. Why not let a special tool like |ffmpeg| do this? See <https://www.ffmpeg...

8 years ago | 0

| accepted

Answered
Why MATLAB uses significantly more RAM than the .mat-file size when loaded?
MAT files can contain compressed data, which are decompressed during loading. So this is the expected behavior. See <https://...

8 years ago | 0

| accepted

Answered
Adjust x-axis using 2 sliders in GUIDE
Perhaps this helps: * <https://www.mathworks.com/matlabcentral/fileexchange/26318-demo-slider> * <https://www.mathworks.com/...

8 years ago | 0

Answered
why 0 views to my question ?
The first question has been asked just 45 min ago and I do see 1 view at least. The view counter is not updated in real-time, as...

8 years ago | 0

Answered
How to retract a previous activation on a broken PC.
You can deactivate the license in your account of the MathWorks web pages. See <https://www.mathworks.com/matlabcentral/answers/...

8 years ago | 0

Answered
I want to make my script or function run faster
With a Matlab version < 2017b, try <https://www.mathworks.com/matlabcentral/fileexchange/24119-don-t-let-that-inv-go-past-your-e...

8 years ago | 1

| accepted

Answered
check parameter used by function with large memory
Remember, that the RAM shown in the TaskManager is not necessarily "occupied". If Matlab reserves 100MB frequently in a loop, th...

8 years ago | 0

Answered
Can I display the value of a variable onto an image?
Should it appear in the figure, or do you want to insert it in the saved image file? Both is possible.

8 years ago | 0

Answered
Workspace does not save when program runs overnight?
You are supposed to work with this computer. So if you need changes with admin privileges, ask your admin. Maybe the computer...

8 years ago | 0

| accepted

Answered
Questions about using the find command/function
A smaller example: x = [1, 2; 3, 4] If you now want to find all values smaller than 4: index = find(x < 4) you g...

8 years ago | 0

Answered
Why do I get error, "Not enough input arguments"
| This is the problem ...

8 years ago | 2

| accepted

Answered
Ismembertol with 'rows' option
You can calculate the pairwise distance and set a threshold to accept two vectors as equal.

8 years ago | 0

| accepted

Answered
i get some error after install matlab,i can't open matlab
<https://www.mathworks.com/matlabcentral/answers/100496-why-do-i-receive-license-manager-error-8>

8 years ago | 0

Answered
how to convert 1 channel grayscale image into 3 channel?
These are equivalent and working: RGB = repmat(I, [1, 1, 3]) RGB = I(:, :, [1, 1, 1]) RGB = repelem(I, [1, 1, 3]) ...

8 years ago | 0

Answered
how to change title automatic ?
maybe you want: title(sprintf('x1(t)- f_{analog}=60 f_{sample}=%d', fsample));

8 years ago | 0

| accepted

Answered
I can't store the output of a while variable in an array and graph it, help
The purpose of the code is not clear. Then fixing is based on guessing, which might be more confusing. Maybe you want somethi...

8 years ago | 0

Answered
Strange problem with "imread" function
In the second case the code is: image = imread(img); ... I = imread(image); This means, that |image| is the import...

8 years ago | 0

| accepted

Answered
Is there a way to surpress the command window when starting the engine ?
Do you mean: <https://www.mathworks.com/matlabcentral/answers/103148-is-it-possible-to-suppress-the-matlab-command-window-from-o...

8 years ago | 0

| accepted

Answered
Use row vector index values to select a matrix portion. Error: Index exceeds matrix dimensions.
My guess is, that your |data| does not have |idx_start(k)+timePost| elements. Use the debugger to test this: dbstop if erro...

8 years ago | 0

Answered
Check if one cell is comprised in other cells of an array?
Use |ismember('rows')| and a loop: found = true; for k = 2:7 found = found & ismember(v{1}, v{k}, 'rows'); end ...

8 years ago | 0

Answered
Creating a 3D-Matrix containing structures
Do you mean a |cell| array? A = cell(100,20,20); ... A{ii,c(cc),d(dd)} = [RES(ii,cc,dd);FAL(ii,cc,dd)]; ...

8 years ago | 0

Answered
xticklabels showing up incomplete
Maybe the number of 'XTick' does not equal the number of 'XTickLabel'? This would be clear, if you post the code. Label = {...

8 years ago | 2

Answered
Can I install and activate matlab in all these systems with this single account.
Maybe your university has a site license already? This is a question for the official technical support, not for the public ...

8 years ago | 0

Answered
Is this working right
This can be written shorter with less chances for typos: function [a, b, c] = sort3(v) a = v(1); b = v(2); c = v(...

8 years ago | 1

Answered
Transparency causes nonsmooth lines
Transparency requires the OpenGL renderer. The line-smoothing requires the Painters renderer. As far as I can see, you observe t...

8 years ago | 0

| accepted

Answered
I am getting Can't reload 'C:\Program Files\MATLAB\R2018a\bin\win64\hgbuiltins.dll'. I have 64 bit OS(windows 10)
I recommend to ask the technical support. See the "Contact Us" link on top of this page.

8 years ago | 0

Answered
How to access table with eval?
While the suggestions to avoid |eval| are the way to go, the actual problems are: eval([N'.Torque1cNm = cell2mat(raw(:,1)']...

8 years ago | 0

Load more