Answered
How to animate graph?
M = rand(3, 3); figure; axes('XLim', [1, 3], 'YLim', [0, 1]) H = line(1:3, inf(1, 3)); for k = 1:3 set(H, 'YD...

8 years ago | 0

| accepted

Answered
getting 'output argument' error when calling function
If |match_fit| is empty or |effectiveBid(i) > bidmax| is never true, the variable |winner_index| is not created. The output of |...

8 years ago | 0

Answered
Checking partition format before saving.
At least under Windows this replies the file system of the drive "D:": di = System.IO.DriveInfo('D'); FileSystem...

8 years ago | 0

| accepted

Answered
what's the answer and what's mean ?? about matrices
You are asking for the meaning of the operator | , not for the |mean()| of a matrix. a = [ 3 4 ; 5 6 ] b = [ 1 0 ; 0 1 ...

8 years ago | 0

Answered
How can I have multiple authors for a File Exchange uploaded file
Include the text of the BSD license as comment in your code. Mention all authors there. You can insert all authors in the descri...

8 years ago | 0

Answered
Simple Method for Finding if ANY NaN values occur in a matrix.
Here is a fast C-Mex function to find out, if any element of one array occurs in the other: <https://www.mathworks.com/matlabcen...

8 years ago | 2

Answered
datetime array concat not diplaying time of day when first element is NaT
This does not reproduce the problem: c = datetime({'NaT', '01-Mar-2018 10:00:00', '01-Mar-2018 10:00:01', 'NaT'}) But wh...

8 years ago | 0

Answered
Adding a variable to a square zeros matrix in a for loop given x and y coordinates calculated from separate vectors
M = zeros(10, 10); for k = 1:20 ... get new classlables and truelables here ... classpos = find(classlabels); %...

8 years ago | 0

| accepted

Answered
How to keep 0s when converting data type?
As far as I understand you have something like this: C = {'123', 0, '456.4'; ... 0 '987', '3.14'} Now c...

8 years ago | 1

| accepted

Answered
what is the method to retrive an image of size of 256*256 unit8 pixel which is in its one dimension with size 4096*1 unit8
This is not possible. A [4096 x 1] vector does not have 65536 (256*256) values, such that you cannot reshape it "keeping the sam...

8 years ago | 0

Answered
How to arrange data with scirpt ?
Use a vector instead of a bunch of variables: b = [299.68 298.7 296.18 295.2 294.21 294.01 293.57 293.44 293.43 292.95 ... ...

8 years ago | 0

Answered
how to distribute users uniformly or non uniformly inside circle
To get 100 points ("users") inside a circle with radius R with a cheap rejection method R = 19; want = 100; have =...

8 years ago | 0

Answered
How can I use the function affinecrypt in Matlab
You did not tell us, what you try to do with this code snippet. *When* do you get the error message? Do you try to insert this...

8 years ago | 0

Answered
How to fix the decimal alignment and save the file in ascii regular file?
To align the decimal points, leave the required space: data = (round(randn(5, 5) * 1000, 1)); % Some test data data(da...

8 years ago | 1

Answered
How can I see all the results in a loop with interval and reorder the results to plot them
There is no need for the square brackets in the FOR loop arguments. See <http://www.mathworks.com/matlabcentral/answers/35676-wh...

8 years ago | 0

Answered
Extremely slow nested for loop
Start with a slightly cleaned version: function Lsn = coefFourier_ll_log(k,ll) N = length(ll); ll_n = coefFour...

8 years ago | 0

| accepted

Answered
How to access .jpg files from a folder and save names of .jpg files
FileList = dir(fullfile(FolderName, '*.jpg')); File = fullfile(FolderName, {FileList.name}); Now |File| is a cell st...

8 years ago | 0

| accepted

Answered
Creating new registors using Loop
Do not create variables dynamically. See <https://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-n...

8 years ago | 2

Answered
Is it possible to vectorize the following code? I have tried for hours but failed.
Walter's answer is sufficient already. Just some remarks: There is no need for the square brackets in your code, such that th...

8 years ago | 1

Answered
To Find one element in a matrix or a Vector
containsZero = ~all(V(:)) This avoids to create the temporary array |V(:)==0| and for large arrays this should be a measura...

8 years ago | 0

| accepted

Answered
the dimensions of matrix and the size is different?
This is exactly the expected behavior. x = [M,N] y = [M2,P] This concatenates the scalars M and N, as well as M2 and ...

8 years ago | 0

Answered
Implementation of the matlab function filtfilt in C language
See <https://www.mathworks.com/matlabcentral/fileexchange/32261-filterm> for an implementation of FILTFILT. Here the treatment o...

8 years ago | 0

Answered
Error while using readtable command in MATLAB
This does mean, that there is no such file. Note that the relative path 'Desktop\ABC\breslow.dat' is interpreted relative to the...

8 years ago | 1

Answered
download matlab 2016b for windows 7 32 bits.
No, Matlab 2016b does not run under Windows7/32. The latest 32 bit version of Matlab was 2015b. and can you give me the link t...

8 years ago | 2

| accepted

Answered
how to get string and numbers separately using csvread
When you get an error message, start with reading the documentation: doc csvread There you find: The file must cont...

8 years ago | 0

| accepted

Answered
MATLAB R2017a does not recognize a Visual Studio 2015 Compiler
The <https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/SystemRequirements-Release2017a_Supp...

8 years ago | 0

Answered
take part from string
S = 'C:\Users\khs\Desktop\pics\photos'; [PathName, Folder] = fileparts(S); Or more flexible: S = 'C:\Users\khs\Desk...

8 years ago | 1

| accepted

Answered
How can I change the rate of change for surrounding elements after a certain number of rows?
It is not trivial to identify what the "infected nodes" are and which variable is the "row number 50+". I guess you want to repl...

8 years ago | 0

| accepted

Answered
How can i solve the vertcat error.
I guess, that you want a cell array instead (curly braces): DataSheet_Values = {Model, Area, Pmpp_stc, Voc_stc, Isc_stc, .....

8 years ago | 0

Load more