Community Profile

##### Last seen: Today
4.229 total contributions since 2018

Communication through MATLAB is always better than arguing.

View details...

Contributions in
View by

index multiple columns together on different critera
_“I want to pull out a new matrix with all the rows where column 1 is <0.2 *and* column 2 is >0.2.”_ idx = A(:,1)<0.2 & A(:,...

1 giorno ago | 0

matrix to cell conversion
num2cell(matrix, 1).'

1 giorno ago | 0

how to modify all elements in a row vector
vector(:) .*(0:numel(vector(:)) - 1)

1 giorno ago | 0

Check for missing argument or incorrect argument data type in call to function 'ss'.
Either you don’t have the license for it or you don’t have that toolbox.

2 giorni ago | 0

| accepted

multiply vector and matrix
Wanted = cell2mat(a) .* cell2mat(b); celldisp(num2cell(Wanted, 2))

3 giorni ago | 0

multiply vector and matrix
Wanted = cellfun(@times, a, b, 'un', 0); celldisp(Wanted)

3 giorni ago | 0

multiply vector and matrix
a .* b

3 giorni ago | 0

Find/return value from each row in a big matrix that corresponds with a condition/value
Wanted = nonzeros(x .* (abs(A - c) < 1e-2))

5 giorni ago | 0

Undefined function or variable 'imnlmfilt'
It requires Image Processing Toolbox and a valid license for it. Contact your IT department in your University to get the licens...

6 giorni ago | 0

| accepted

Solving symbolic trig equation in terms of theta, using "sol."
The solution is returned in a struct so to access it you need to use the dot. It has occurred that there are two solutions?

7 giorni ago | 0

| accepted

How to convert a char into double?
sscanf(f,'%d')

8 giorni ago | 0

lines through markers on legend
x = -10 : 0.1 : 10; y = cos(x); plot(x, y, '--o', 'MarkerSize', 5) hold on y = sin(x) plot(x, y, '--d', 'MarkerSize',...

8 giorni ago | 1

How to create function handle with matrix inputs, vector output?
FCN = @(x) x(:, 1) + x(:, 2); sum(in, 2) % ??

8 giorni ago | 0

| accepted

"str2sym" delete the element wise operation
doc matlabFunction

8 giorni ago | 1

| accepted

How to replace multiple elemets at particular index in vector ?
a(3 : 2 : 7) = [.7, .1, .9]

9 giorni ago | 1

| accepted

extract num and den from matrix transfer function
Use it inside the loops, preallocation is recommended for the variables.

9 giorni ago | 0

How can i get the last element of a maxium with the help of findpeaks?
<https://www.mathworks.com/help/signal/ref/findpeaks.html#bufhxsk-2> It states: _“For the flat peak, the function returns ...

9 giorni ago | 0

| accepted

Error 'Array indices must be positive integers or logical values.' when the number of indices is large
In this case it’s probable that b has elements less than 1 and greater than 32. Outside_bounds = nnz((b < 1) | (b > 32)) % t...

10 giorni ago | 0

| accepted

fzero or fplot function
The anonymous function should perform element wise operations (warnings for fplot) and (errors for fzero).

10 giorni ago | 0

How parentheses effects multiplication with pi ?
In the first the order of operation is from left to right. In the second the order of operation is inside the parenthesis and...

11 giorni ago | 0

How do I delete my account?
Contact MathWorks Support Team.

11 giorni ago | 0

| accepted

how to label strings in an array with an ID
T = cell2table(StringID(:, 2)); T.Properties.RowNames = StringID(:, 1); Wanted = T{num2cell(tc), :}

11 giorni ago | 0

Error while plotting matrix of complex numbers
plot(real(sub), 'r-', imag(sub) ,'b*');

12 giorni ago | 0

| accepted

Variable for loop storage
low = A(lowPs, :)

12 giorni ago | 0

Variable for loop storage
low = cell(numel(lowPs), 1); for k = 1 : numel(lowPs) B = A(:,1) == lowPs(k); %%row numbers in A where A(:,1) that co...

12 giorni ago | 0

| accepted

random matrix with a given number of specified elements
v = [repelem(1, 5), repelem(0, 4)]; Wanted = v(reshape(randperm(numel(v)), 3, []))

12 giorni ago | 1

| accepted

How can I randomize the order of a matrix of images
Filenames = compose('image%d.png', 1:4); Filenames(randperm(numel(Filenames))) % ?

12 giorni ago | 0