Answered
Is there a list of all color long names?
While I do not know the list of names defined in Matlab, you can find tools for getting the RGB values for color names in the Fi...

9 years ago | 3

Answered
Making a matlab GUI. Display all values taken from an iterative loop on a static Text
k = 15; n = 1; i = 0; allK = []; while k > n if mod(k, 2) == 0 % Not "mood"! k = k / 2; else ...

9 years ago | 0

| accepted

Answered
export_fig error message help
Either copy |export_fig| to the path, which contains your M-files - this might be the |userpath|. Or Store it in an own folder, ...

9 years ago | 0

Answered
How to extract slider values from one .m file to another .m file
You can start the external function from inside the callback of the slider: function SliderCallback(hObject, EvenData, hand...

9 years ago | 0

Answered
Error is occured when I changed version of Matlab
I guess, that |ISb| is not a scalar. Test this using the debugger: <https://www.mathworks.com/help/matlab/matlab_prog/debugging-...

9 years ago | 0

| accepted

Answered
Update multiple plot fills using XData and YData
*[EDITED]* Sorry, I've posted some nonsense code here by accident. Thanks, Walter. I do not remove the answer to keep the valuab...

9 years ago | 0

Answered
Function with form, that changes in time
Remember that |ode45| is designed to integrate only functions, which can be differentiated smoothly. If the function has discont...

9 years ago | 1

| accepted

Answered
Fixing matrix dimensions to match
The computations work, when you apply the elementwise multiplication with the .* operator instead of the matrix multiplication *...

9 years ago | 1

Answered
Moving Average in a array with overlapping elements
Your code does almost work. Start at 1 and stop at 100-8+1. Note that 8 elements have the indices |i:i+7|, not |i:i+8|. w ...

9 years ago | 1

| accepted

Answered
Image is too big to fit on screen
This is not an error, but a warning. You should be reminded, that the displayed image contains less details as the original data...

9 years ago | 1

| accepted

Answered
Is it possible to extract numbers from formated strings without a for cycle?
With <https://www.mathworks.com/matlabcentral/fileexchange/28916-cell2vec FEX: Cell2Vec>: V = sscanf(Cell2Vec(C), 'abc%d');...

9 years ago | 1

Answered
How to search a substring in a list of strings?
If you want to search at the start of the strings only, this is efficient: A = {'xx', 'abc1', 'abc2', 'yy', 'abc100'}; B...

9 years ago | 1

Answered
What is the fastest way to export a figure in MATLAB?
See <https://www.mathworks.com/matlabcentral/fileexchange/40384-savepng FEX: savepng> for a faster method to write a PNG file. ...

9 years ago | 1

Answered
Matlab Runge Kutta Method with 8 States
Look at: doc ode45 for a well tested integrator. It adjusts the step size automatically to get a trajectory inside a gi...

9 years ago | 0

Answered
Is there anyway to create table with using X, Y and Z values automatically?
No, there is no interpolation method to solve this. You have the data point X=550, Y=18, Z=21. There is no way to use this to co...

9 years ago | 1

| accepted

Answered
How can I draw an initial snake on the jpg file that loaded from my computer?
You load the image file, but did not add a command to display it. See |image|, or |imshow|.

9 years ago | 0

Answered
what should I change in the script for solving "Error in using fscanf". Thank you
In your script, the line 274: |a = fscanf(fid,'%g',inf);| fails, because the file identifier replied by the line before: |fid = ...

9 years ago | 0

Answered
Declare a random column vector V with 500 entries
Beside posting the direct solution, it is useful to know, how you can find such solutions efficiently by your own: Instead of...

9 years ago | 0

Answered
time to access webpage
"A few milliseconds" is a very low limit. It will be hard to get this using plain Matlab, neither by |clock| nor by |pause|. See...

9 years ago | 2

| accepted

Answered
Is MinorAxisLength always perpendicular to the MajorAxisLength
The lengths itself are not perpendicular to anything, because they are scalars. The replied lengths are: 'MajorAxisLength' L...

9 years ago | 2

| accepted

Answered
using ode45 to find streamline
|ode45| calculates the integral *numerically*. You cannot provide the derivatives as symbolic variables. Is |u| and |v| the d...

9 years ago | 0

Answered
Code to build massive cell array of TIFFs
No, there is no easier way. Because you do not show us, how you do it, my opinion is based on guessing only. But collecting a li...

9 years ago | 0

| accepted

Answered
Delete row from struct on string condition
This is a bad idea: for i = 1:size(PaxUsage_struct,2) if isequal(PaxUsage_struct(i).Country,'CY') PaxUsag...

9 years ago | 2

Answered
Sketching function for V(t)
T = 0.2; t = linspace(0, 5*T, 200); v = 10 * exp(-4*t) .* cos(8 * pi * t); plot(t, v)

9 years ago | 0

Answered
how to change diagonal element to 1 and set tridiagonal element set to zero
The shown output does not contain 1 on the diagonal, but [1,1,2,2]. Now assume, that the text of the question is, what you want...

9 years ago | 1

| accepted

Answered
Align text in uitable using GUIDE
Yes, of course a column can contain strings and another doubles: figure; uitable('Data', {'hello', 2; 'there', 3}) Lo...

9 years ago | 0

| accepted

Answered
How to use for loop rather than nesting if loop
while isempty(C_diff) cdiff_counts = counts - 1; C_diff = find(cdiff_counts == 0); end It looks like |C_...

9 years ago | 0

| accepted

Answered
how to renew licence
Click in the ribbon on the field "Request Support". Login to your Matlab account. The points "Manage Licenses" and "Purchase pro...

9 years ago | 0

Answered
How to add a matrix into a specific part of a matrix?
A = reshape(1:16, 4, 4); % Some test data E = rand(2, 2); A(2:3, 2:3) = A(2:3, 2:3) + E; I have no idea, what |F| co...

9 years ago | 1

Answered
MatLab not properly opening on Windows- Pop Up
Did you get this message after downloading, or when you try to start the installation, or at the start of Matlab? Did you try to...

9 years ago | 0

Load more