Community Profile

##### Last seen: Today
4,536 total contributions since 2018

Communication through MATLAB is always better than arguing.

View details...

Contributions in
View by

if statement find criteria not doing what I want it to do
neqchek = @(k) subsasgn(k, substruct('()', {k(1) == 1}), 10); out = neqchek([1 : 2, 1])

3 days ago | 0

Change data type of entire cell array?
cellfun(@(x) sscanf(x, '%d').', Cell_array, 'un', 0)

10 days ago | 0

How do I make a function with 2 parameters?
Man muss einfach versuchen. doc function

10 days ago | 0

Delete specific numbers from cell array
p2 = [1, 2; 0, 1] p3 = num2cell(p2, 1); Wanted = cellfun(@nonzeros, p3, 'un', 0)

10 days ago | 1

Matrix multiplication error using '.*'
t = linspace(0, 1, 66);

12 days ago | 0

Assign Values into a matrix (DG)
matrix(:, 1) = linspace(matrix(1, 1), 0, size(matrix, 1)); matrix(:, end) = linspace(matrix(1, end), 0, size(matrix, 1))

13 days ago | 0

how do i print only the last answer in a for loop
c(k,j) = (c(k+1, j-1) - c(k,j-1))/(x(k+j-1)-x(k)); %<- semicolon

14 days ago | 0

Need help starting this code!!! Arrays

14 days ago | 0

Plot Function With Continuosly
doc piecewise

16 days ago | 0

| accepted

std function won't execute
You have a file named std.m , rename it or remove it from the path.

17 days ago | 0

How do I write this function
y=(cosd(35)-secd(35)^2)/tand(70)

19 days ago | 1

| accepted

Output Jacobian function is not matrix
What you have is a SYMBOLIC matrix.

19 days ago | 0

How to count the number of letter case changes in a string array
c = 'hfeHDdheD'; nnz(diff(ismember(c, 'A':'Z')))

20 days ago | 1

Filter rows based on presence of string
Wanted = ismember(vector, 'male')

20 days ago | 0

creating multiple values of the same x,y,z
doc repmat

21 days ago | 0

How to get the time when a variabile reaches the maximum value?
doc max

21 days ago | 0

| accepted

substiton of a variable in a equation
subs(equation, x, x1)

21 days ago | 0

| accepted

Counting the Size of X Indices of a Matrix
Naming variables is a bad idea Dimensions = num2cell(size(rand(2,3,4))) % simply use a cell array celldisp(Dimensions)

22 days ago | 0

| accepted

I'm getting a confusing error message.
Remove first two lines. Name of the file and function should be the same. help function

22 days ago | 0

How do I create dummy variables with if statements?
X = R > 0

23 days ago | 0

can anyone help me solve these two questions please?
help fibonacci

23 days ago | 0

Given an array of co-ordinates, for each value of x, how do I extract the smallest value of y?
x = [1; 1; 1; 2; 2; 3; 3; 3]; y = [1; 2; 3; 3; 2; 1; 2; 3]; T = array2table([x, y], 'VariableNames', {'x', 'y'}); T1 = groups...

23 days ago | 1

How to remove zeroes not defined by indices
Wanted = zeros(numel(nonzeros(A)) + numel(B), 1); Wanted(setdiff(1 : numel(Wanted), B)) = nonzeros(A)

23 days ago | 0

| accepted

Multiplying sine wave with step function
uu = @(nn) +(nn >= 0); xxuu = xx .* uu(t)

24 days ago | 1

I'm getting Not enough input arguments
Your last line should be before the function

24 days ago | 0

How can I remove negative values from vector (Half-Wave Rectification)
vector = [1, -1]; vector( vector < 0 ) = 0 % [] to remove

25 days ago | 0

x(t) = 2 cos(200πt + 10o )
<https://www.mathworks.com/help/signal/gs/waveform-generation-time-vectors-and-sinusoids-1.html>

26 days ago | 0

Finding indices of certain values
find(all(A == 0, 2))

27 days ago | 0

| accepted

Combine Text and number in a matrixs
Wanted = {'A' 'B' 'C' 'D' 2 3 4 5 ...

28 days ago | 0