Answered
How to use if statement with ode23
|ode23| can handle smooth functions only. See <http://www.mathworks.com/matlabcentral/answers/59582#answer_72047 Answers: Discon...

9 years ago | 0

Answered
answer has been figured out
The question is not clear. "find the lowest number in the array" is not part of the problem. What does "with out first input and...

9 years ago | 0

Answered
What's the Largest Recorded Data Set Ever Used with MATLAB?
Mentioning any matrix sizes will not be useful, because it matters what you want to do with the matrix. Solving a huge linear sy...

9 years ago | 2

Answered
Generating unique random numbers less than 1 in matrix
"Unique" *and* "random" is a contradiction. But you can choose a unique set of numbers easily: ready = false; n = 10...

9 years ago | 2

Answered
Matlab script editor does not show up on some screens
Then description "does not show up on some screens" is vague only. Why do you assume that it could be related to memory? Mention...

9 years ago | 0

Answered
my text file is always not opened when i use fopen!!
If |fopen| cannot open the file, it is either not existing or there is another bug in your code. Check the existence at first: ...

9 years ago | 1

| accepted

Answered
Matlab 2016b command is black after Windows Update
Summary of possible solutions: * Uninstall KB4034664 * Enable an Aero theme in Windows * Set the main monitor to the left t...

9 years ago | 2

| accepted

Answered
Can't open corrupted figure
When you have a corrupted file, there was a problem during the update of the file. Then restore the former version of the FIG fi...

9 years ago | 0

Answered
How to use local functions in GUI in order to organize callbacks in mutliple .m files
function main_OpeningFcn(hObject, eventdata, handles, varargin) SubCallbacks = SubCallbacks_Cntrl; set(handles.checkbox1...

9 years ago | 0

| accepted

Answered
How to compile "mex" file linking with dll from matlab
Did you search in the forum already? This is always a good idea before asking a new question. * <https://www.mathworks.com/ma...

9 years ago | 2

| accepted

Answered
How do you multiply the letter "a" by 3?
Perhaps you do not want a symbolic calculation but a string manipulation. c = {'a'} b = sprintf('%d%s', 3, c{1});

9 years ago | 1

Answered
ho to implement Sets in matlab
How many elements will this set have? Do you want to store 2^100 * 2 elements? A double needs 8 byte and Matlab uses about 100 b...

9 years ago | 3

Answered
Removing like terms in a matrix
There is a specific command for this job: C = setdiff(A, B)

9 years ago | 3

Answered
how to find the largest scalar in array with 2 ways?
"Largest scalar". Sounds like a maximum. Then take a look into the documentation. docsearch maximum The first hits soun...

9 years ago | 0

Answered
How can I concatenate cell arrays of a cell array into one single column?
I guess, how you data look like: name_cells = {{'a'; 'b'; 'c'}, {'d'}, {'e'; 'f'}}; Then: nameCol = cat(1, name_cel...

9 years ago | 25

| accepted

Answered
I am trying to do this problem, but I'm having some issues with steps 2 3 and 4. I thought I did it right, but the values stored in the "velocites" vector all share the same value and they shouldn't. Any help would be appreciated
Your assumption is wrong: the values stored in the "velocites" vector do *not* share the same value. About 1 of 100 is different...

9 years ago | 0

| accepted

Answered
MATLAB ode113 Not Evaluating Events Function?
The event function is not called only when the zero value is reached, but in each step to detect the crossing at all. If your ev...

9 years ago | 0

| accepted

Answered
Find file between others according to character
You can include the key in the search already: key = 'c1'; FileList = dir(['*', key, '*.mat']); FileName = {File...

9 years ago | 2

Answered
How to update app designer GUI in real time at high refresh rate without stutter/lag?
Do I see correctly that you create a new set of |plot|'s in each timer callback? This is rather inefficient. Prefer to create th...

9 years ago | 1

Answered
How do I create the follow array: [0 0 0 ... 0 1 2 ... 100 100 100], where there are 100 zeros on the left and 100 100's on the right? I must use the colon operator.
Use the square brackets for a concatenation of arrays: [1, 3, 5, 4] or a = 1:5; b = [a, a] Now create the 3 n...

9 years ago | 0

| accepted

Answered
Randperm a completely different set of numbers each loop
Guillaume's method without |setdiff| is 10 times faster: curset = []; fullset = 1:100; for k = 1:1e4 newset ...

9 years ago | 0

| accepted

Answered
For Loop for plotting different scatter plots
For the problem in Part 1 see Geoff's comment. The part 2 creates 24 figures. Better move the |figure| command before the loo...

9 years ago | 0

Answered
Matlab not launching offline
If you want to contact the technical support of MathWorks, use the "Contact Us" button on this page.

9 years ago | 1

| accepted

Answered
Split Y axis into two with different colors
Do you mean something like this: x = rand(1, 8); axes2 = axes('NextPlot', 'add', 'Visible', 'on', 'YDir', 'normal', 'YLi...

9 years ago | 1

Answered
How do I print the following for loop as A1, A2, A3, A4?
for i = 1:4 fprintf('A%d, ', i); end Or without a loop: fprintf('A%d, ', 1:4); Or omit the last comma: ...

9 years ago | 1

Answered
Find index of cell containing strings from cell array
ismember(A(:, 2), B)

9 years ago | 0

| accepted

Answered
Compare some parts from one row in two matrices
K = [1 4 2 0 1;1 4 0 0 1;2 4 0 0 1;2 4 3 0 1;5 4 2 0 2]; L = [1 4 0 0 1; 2 4 0 0 1; 4 2 0 0 2]; [match, locK] = ismemb...

9 years ago | 0

Answered
Find certain cells with keyword
S = {'wte-142-9', 'wte-111-1', 'wte-142-1', 'wte-123-09', 'wte-142-6'}; M = S(contains(S, '-142-')) % With modern Matlab v...

9 years ago | 0

| accepted

Answered
Selection when matrix dimensions exceed/ shorten
1. If you want to be sure, that the position at the border is not excluded, include it. There is no magic command for this, but ...

9 years ago | 0

Load more