Answered
ismember(A,B,'rows') indexing
If the two cell arrays don't have the same number of columns, you're obviously not using ismember(A, B, 'rows') but something sl...

8 giorni ago | 0

Answered
Subtract according to the values in another column
one way: C1 = [1 1 1 1 1 2 2 2 2 2 2 3 3 3 4 4 4 4] %this is valid matlab syntax C2 = [5 10 12 35 3 1 4 26 5 11 12 8 2...

8 giorni ago | 0

| accepted

Answered
Plotting the orientation of lines
Not entirely sure what you're after, is it something like: A = [99.1862290400000 102.281400300000 97.1587243900000 ...

9 giorni ago | 0

Answered
Loading Text Files to Run as the Commands in a Function
Ignoring the fact that running arbitrary code is rarely a good idea, the simplest way to achieve what you want is to save your t...

9 giorni ago | 0

Answered
elimination of the chosen elements and rearranging the matrix
Deleting elements of an array while you iterate over elements of an array is never going to work. In any case, a loop is not n...

9 giorni ago | 2

| accepted

Answered
Creating multiple plots from a data file using a for loop
I see you've solved your problem, but for future reference the problem had nothing to do with plot. The problem was with your in...

9 giorni ago | 0

| accepted

Answered
html and uitable formatting with several features at the same time
If you're talking about uitable within a uifigure, then it does not support html formatting. See https://www.mathworks.com/matla...

9 giorni ago | 0

Answered
Adjacency matrix formation from n*n matrix
edgeData = [A, W(:)] Note that this is not an adjacency matrix. Also, you may actually want to input that into a graph or digr...

9 giorni ago | 0

| accepted

Answered
Find monthly mean from daily data of same year using find function
The easiest way: data = readtimetable('C:\somewhere\somefile.xlsx'); %may need some adjustement depending on the actual format...

9 giorni ago | 0

Answered
Probelm with 'writecell'
If the only thing you're trying to do is remove the first line of a text file, then parsing the file (with csvread, readcell, or...

9 giorni ago | 0

Answered
How can modify file name that imported by uigetfile.
Note that if it's for saving/exporting, you should use uiputfile instead of uigetfile. Regardless, all these functions do is re...

9 giorni ago | 0

| accepted

Answered
Error Using fscanf to open file
Why the conversion of filename to char? If it's not already a char array what is it? You should always check the return value o...

9 giorni ago | 0

Answered
Is it possible to annotate types so the tab completion works properly?
Matlab a way to customise tab completion with the functionsignatures.json file.It's not particularly well documented and when I ...

10 giorni ago | 1

| accepted

Answered
FInd value after matching String
str2double(regexp(yourtext, '(?<=value: )\d+', 'match'))

10 giorni ago | 1

| accepted

Answered
Change in diff function
You can't change the diff function, but it is trivial to implement your difference: result = X(3:end) - X(1:end-2) For a 2D ar...

10 giorni ago | 0

| accepted

Answered
Problems reading .RAW file
Your image is read incorrectly because you specified 't' in the fopen call. 't' means text mode and will replace some bytes sequ...

10 giorni ago | 1

Answered
Compare values from two text files and replace if they match
Assuming you've imported your two text files as matrices: %m1, m2: matrices corresponding to each text file: [ismatch, whichro...

10 giorni ago | 0

| accepted

Answered
about assigning the values to a column vectors.
As Madhan said, always post the code as text, not as pictures which we can't copy paste into matlab. There is usually no need f...

10 giorni ago | 1

| accepted

Answered
Matlab uitable column font size using html not working
All of the solutions you link apply to the old style uitable (in a figure). As far as I know there's no documented or undocument...

11 giorni ago | 0

Answered
Finding a string exact match
I have no idea what you were trying to do with: x = parameters(~ismember(parameters,parameters{n})); which is obtained mor...

11 giorni ago | 1

| accepted

Answered
Why the memory of String class is so big?
Can't tell you why the overhead. On my computer (R2019a) it looks like it's 158 bytes. However, it's certainly not something to ...

11 giorni ago | 0

| accepted

Answered
Which depth does any temperature have in the each point of 3D-field?
You just need to create an interpolant, Z = F(X, Y, T) and then query it for all X and Y with T = 3. I'm assuming you have vecto...

11 giorni ago | 1

| accepted

Answered
Compare values of a matrix
I'm still not entirely clear on your whole algorithm, I think the following do what you want: function clusters = cluster(m, th...

11 giorni ago | 0

| accepted

Answered
convert Wav file to binary, send it through simulink and convert it back to wav
I'm not entirely clear why you're jumping through so many hoops, but it looks like there's a misunderstanding. As far as I can t...

11 giorni ago | 0

Answered
Problem using imcrop in App Designer(2019a Version)
imcrop doesn't have an option to specify an axis, according to the docs. However, instead of an image, you can specify a handle ...

13 giorni ago | 0

Answered
Editing PowerPoint While It is Open
When a file is open in powerpoint, powerpoint locks it so no other program can edit it. This is why you get an error when trying...

13 giorni ago | 0

| accepted

Answered
remove Nan from a row vector using if statement only
But the above codes doesn't remove NAN One important property of NaN is that NaN is never equal to anything, including NaN. Hen...

13 giorni ago | 1

Answered
How to implement modulo to the code
It looks like what you are trying to do is build the histogram of the two variables sOnAngleH0 and AngleHa. This is easily done ...

14 giorni ago | 0

| accepted

Answered
Calculating binary progression using for loop
"Input is a number (numin), I am looking to calculate all power of two required to form this no. in a binary series" Easily don...

14 giorni ago | 1

| accepted

Answered
create a vector whose elements depend on its previous elements without a loop
Doing this will a loop shouldn't be slow as long as you preallocate the array beforehand: a = zeros(1, 100); %preallocation a...

14 giorni ago | 1

| accepted

Load more