Community Profile

Last seen: Today
3.578 total contributions since 2018

Communication through MATLAB is always better than arguing.

View details...

Contributions in
View by

error: invalid range ; What could be the reason for the invalid error in the code I wrote? If the reason is inf, will they explain ?
Replace inf with a very large finite number for instance 1e6 . Note: You haven't defined K. The reason is simple , imagine yo...

alrededor de 11 horas ago | 0

Changing corresponding column based on condition, for a table.
T{ismember(T{:,10},'female'),9} = {'false'} % T your table

alrededor de 11 horas ago | 1

| accepted

How to replace a missing value in a table with a string?
Grouped_Weights.Country(cellfun(@isempty,Grouped_Weights.Country),:) = {'OTHER'}

alrededor de 20 horas ago | 0

| accepted

Why "-pi/8 <= 0.0099 < pi/8" return logical 0?
>> -pi/8 <= 0.0099 ans = logical 1 >> ans < pi/8 ans = logical 0 >> pi/8 <= 0.0099 ans = ...

alrededor de 21 horas ago | 0

| accepted

Somone can help me with unique and find function?
[lo,ix]= ismember(A,B,'rows') B = B(~lo,:) vector = ix(lo)

alrededor de 22 horas ago | 0

| accepted

1 día ago | 0

Writing m function to be read by Livescript
https://www.mathworks.com/help/matlab/ref/function.html - you need to read more

1 día ago | 0

| accepted

Extracting values from a cell then converting to a matrix
A([1,2],:) = []; A(:,1) = []; Mat = cell2mat(A)

1 día ago | 0

| accepted

1st order fucntion with no zero
doc pzmap doc pidtune doc pidtuner

2 días ago | 0

i am not getting correct output for this sawtooth plot
T = 6; Fs = 1e3; dt = 1/Fs; t = 0:dt:T-dt; a = 4; x = a*sawtooth(2*pi*t); t = t*5; plot(t,x) grid on

2 días ago | 0

| accepted

How to calculate detivative of a function with respect to another function
syms u x subs(diff(u^2 - 1), u, cos(x))

2 días ago | 0

| accepted

Number the subplot quarter

2 días ago | 0

| accepted

Array indices must be positive integers or logical values.
f & df should be a function handle , can't see how you defined so it might be the issue.

2 días ago | 0

Howto Replace Specified and Non-Specified Elements in Matrix with Strings
Wanted = repmat("neither",size(matrix)); Wanted(matrix == 0) = "zero"; Wanted(matrix == 1) = "one"

2 días ago | 0

| accepted

Can Matlab Livescript read function m files (not local functions) outside .mix file?
Ofcourse if it is under the working directory.

2 días ago | 0

| accepted

putting zero between sequence
y = [x, zeros(1, 92e2 - 74e2)]

2 días ago | 0

How to use for loop correctly and indexing my result?
Use *;* at the end of each line inside the loop. X1(3,:) % after the loop

2 días ago | 0

How can i add zeros to same specified matrix column and row?
[m,n] = size(A); rc = [4,5]; % where to place zeros N = 2; % 2 columns and rows b = zeros(m+N,N+n); R = setdiff(1:...

2 días ago | 0

| accepted

i don't understand
Replace 1 with ~0 and 0 with ~1.

2 días ago | 0

| accepted

My loop returns imaginary results!
Evaluate the part ((16.6 - sum(A(1:i-1,:)))/ 42) and see what happens when the sum(...) is greater than 16.6 Note: N...

2 días ago | 0

| accepted

change order of a row vector
ix = setdiff(1:numel(vector), B); Wanted = [vector(B), vector(ix)]

2 días ago | 0

| accepted

I cannot write a system with three equations with cases
Use equation -> LaTeX and: \begin{cases} eq 1 \\ eq 2 \\ eq 3 \end{cases}

2 días ago | 0

| accepted

How to add new field to existing structure?
If S is your struct: S.Newfield = "Hi there;)"

3 días ago | 1

How to define simultaneous equations for ODE45
f1 = @(t,x) x(1) + x(2) f2 = @(t,x,a) x(1)-a*x(2) F = @(t,x,a) [f1(t,x);f2(t,x,a)]

3 días ago | 0

| accepted

how to display images in separate figures?
for k = 1:8 figure(k) I = imread(sprintf('im%d',k)); % you forgot to read the image imshow(I) end

3 días ago | 0

finding repeated values of two columns data?
No loops needed: [Rows,~,c]= unique(ex,'rows'); Counts = accumarray(c,1); Wanted = [table(Rows),table(Counts)...

3 días ago | 0

Ploting a series and finding lim to infinity
N = 1e2; % an inf number a = zeros(1,N); a(1) = 1/3; a(2) = 2/7; for n = 1:N-2 a(n+2) = a(n+1) / (n+1)...

3 días ago | 0