Community Profile

# Sindar

##### Last seen: 4 jours ago

105 total contributions since 2018

View details...

Contributions in
View by

Array indices must be positive integers or logical values.
(n.*K.*T(K).*ns)) is that supposed to be T*K or T(k)?

4 jours ago | 0

Not Generating Accurate Elements from Inequality
Feyqlimit = Fezq(abs(Fezq) <= .025)

4 jours ago | 0

| accepted

I want to install 2020 matlab win32
https://www.mathworks.com/help/install/?s_cid=doc_ftr

4 jours ago | 0

Delete part of the third dimension for arrays that store in the cell
to access the data in cells (rather than the cells themselves) and to store data in a new cell array, use {} for i= 1:numel(tma...

4 jours ago | 1

| accepted

How do I plot a series of points as a collection of 1x2 arrays?
If you have a cell array of 1x2 arrays like so: points = {[1,2] , [2,6] , [8,3] , [6,9]}; then you can turn it into a 1x (2N) ...

5 jours ago | 0

How to sum my matrix element?
from sum documentation: "S = sum(A,'all') computes the sum of all elements of A. This syntax is valid for MATLAB® versions R201...

5 jours ago | 1

How to reorder cell array based on the vector
index = [1; 2; 4; 3; 7; 6; 5]; list = {[1158;1159], [1543;1544], [2020;2096;2173], [2159], [4836], [5374], [5492;5493]}; list_...

5 jours ago | 0

| accepted

group in a small vector
Ok, here is a way: A=[1,0,0,1,1,1]; % turn A into a 1x6 string array tmp=string(A); % reshape into a 3xN string array, then ...

5 jours ago | 0

| accepted

How to do permutations with conditions
Actually, this should work V= (1:0.5:5); Comb = combvec(V(2:end),V)'; % if you want sorted by first column: Comb = sortrows(...

5 jours ago | 0

| accepted

How can I insert data from different table that match a certain value?
% find the index of the offset.FrameNumber row matching each Secc.Seccion element [~,idx] = ismember(Secc.Seccion,offset.FrameN...

6 jours ago | 0

| accepted

How to show the negative value on the graph?
If you want to plot both positive and negative data on a log scale, your best bet is to check out symlog: https://www.mathworks....

13 jours ago | 0

Plot change in heat for a x y position as a function of time
Look at your Temp variable: Temp=zeros(x_nodes+1,y_nodes+1,t_nodes+1); if you want to know the temperature for a specific loca...

13 jours ago | 0

How to use for loop with xlsread to read multiple sheets in an excel file
from the documentation: num = xlsread(filename,sheet,xlRange) %reads from the specified worksheet and range. so, just loop ove...

22 jours ago | 0

Combining if and for loop to iterate through a cell array
to access the contents of a cell array, use {} instead of (): for trialnumber = 1 : length(cellfilename) if cellfilename{t...

22 jours ago | 0

| accepted

Iterating through 2 Arrays and Performing a Calculation
loop version: for ind=1:length(A2) idx = find(A1 < A2(ind),1,'last'); A3(ind) = A2(ind) - A1(idx); end Another (p...

22 jours ago | 0

Calculations using for loops
Two problems: parentheses are not multiplication in matlab, you need * you are trying to insert a variable into itself Soluti...

22 jours ago | 2

| accepted

save variables to table in for loop
Assuming you just want the final result and don't care about when it prints the filenames: fileID = fopen('filenametable.txt','...

22 jours ago | 0

how to move label from axis to the center
First, those are called the xtick labels. It turns out moving them is a pain, but I did find a potential solution here: a=gca; ...

22 jours ago | 0

Main .m file contains sub .m files and if one crashes, I want it to move to the next .m and carry on.
try a catch warning('Problem using script ''a'''); end try b catch warning('Problem using script ''b''')...

22 jours ago | 0

| accepted

Cannot express limits in arrays
If the area is fixed, you don't want independent Y and Z: A = 4345; Z = [33:0.000001:sqrt(A)]; Y = A./Z; Note that the condi...

23 jours ago | 0

| accepted

Could anyone help me how to make the values to be repeated again after 800 iterations for a total of 1000 iterations.
If I understand you correctly, you have data in, let's say, x. You want to set elements 801-1000 of x equal to element 800: x(8...

environ un mois ago | 0

Colormap for multline plot
I believe this should work: mylines = plot(t, x); set(mylines,{'Color'},flag(length(mylines))) For 2019b+, colororder is ...

environ un mois ago | 0

how to find duration of peak; starting and ending points
widths are an optional output from findpeaks: [pks,locs,widths,~] = findpeaks(data);

environ un mois ago | 0

How to convert .mat file to png format?
This is not generally possible. mat files store variables, not images. This is like asking "how do I convert a flashdrive into a...

environ un mois ago | 0

Save variables in a folder
Check the save documentation, you can save specific variables by adding their names as further inputs: save(resultFileName,'Err...

environ un mois ago | 0

| accepted

Why it gives Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters
This would be much easier to solve if you included the full error text. But, I suspect the problem is here: function H = hpfil...

environ un mois ago | 0

| accepted

Delete and merge rows and columns based on values of other matrix
If I understand correctly: You have one NxN matrix A And a second 1xN vector B When an element of B is zero, you delete rows ...

environ un mois ago | 0

| accepted

Could anyone please help me to do matrix multiplication with respect to the sample data given below.
Matrix multiplication only works when the "middle" dimension matches ( N x M ) * ( M x O ) Check the sizes of your matrices: >...

environ un mois ago | 0