Answered
how to create a random integernumbers with conditions?
ix = [4, 3, 3]; A = repelem(1:3, ix); A(randperm(numel(A)))

6 years ago | 0

| accepted

Answered
How o generate random integer value?
a = 1:10; No_vals = [3, 6, 8]; A = setdiff(a, No_vals); Wanted = A(randi(numel(A), [1, 12]))

6 years ago | 0

Answered
Deleting Rows in a Table as Determined by a Variable Value
TabLE(119:end, :) = []

6 years ago | 0

| accepted

Question


Why no output?
Why sometimes MATLAB Mobile doesn’t output anything in the command window even if the internet quality is good?

6 years ago | 1 answer | 0

1

answer

Answered
Split array into sub arrays and apply function
[lo, ii] = ismember(PeakS, x); ix = diff([0, ii(lo)]); Output = mat2cell(x, 1, ix)

6 years ago | 0

| accepted

Answered
Rewrite CSV First Column
m = 0.001; N = 2052766; data(:,1) = 0 : m : N*m - m; dlmwrite('TP4765.csv',data)

6 years ago | 0

| accepted

Answered
What matlab resources are free?
The webinar’s are free of charge. Resources? You have documentations for each function. You might as well be interested in MATLA...

6 years ago | 0

Answered
matrix index is out of range for deletion
pitch(TF == 1) = []

6 years ago | 0

| accepted

Answered
How to make a plot with a max value from a column related to another
[u,~,c] = unique(A{:,1}); % A your table MAX = accumarray(c,A{:,2},[],@max); % you may also be interested in using groupsumma...

6 years ago | 0

Answered
how to create .dat file?
As simple as that: writetable(cell2table(dataset), 'Sample.dat')

6 years ago | 0

Answered
Display number with units in scientific notation (format compact)
<https://www.mathworks.com/help/symbolic/modify-output-of-symbolic-results.html#ModifyDisplayOutputOfSymbolicResultsExample-3> ...

6 years ago | 0

| accepted

Answered
Function for angle to output 1 or 0
Theta = @(x) 0*(x>=0 & x<34) + 1*(x>=34 & x<=68)

6 years ago | 0

| accepted

Answered
How to search a number in a random string?
str = str2double(regexp(text,'\d+$','match'))

6 years ago | 0

Answered
Trasform 'values' inside table in numeric values always inside a table
The correct way: T(:,2:end) = num2cell(cellfun(@str2double,T{:,2:end},'un',0)); % T your table mean(cell2mat(T{:,2:end}),'...

6 years ago | 0

Answered
Removing replication in matlab
regexprep(str,{'0+','1+'},{'0','1'})

6 years ago | 2

Answered
Intersection point of yline
x=[-150:5:0, 5:100]; INTERSECTION = interp1(y1,x,z)

6 years ago | 0

| accepted

Answered
Cell array convert into double
Wanted = cat(1, cell_array{:})

6 years ago | 0

Answered
Need help with this error: the left and right sides have a different number of elements
f_hat = cell(size(t)); % initialize the inverse F.T. for ii = 1:numel(t) f_hat{ii} = real(1/pi*F*exp(1j*w*t(ii)).'*dw)...

6 years ago | 0

Answered
Converting 2D array to 3D array by sector
bb = reshape(aa.', 1, [], size(aa,2))

6 years ago | 0

| accepted

Answered
Not enough input arguments
Type the below in command window: X = 1; y = 2; theta = 3; J = computeCostMulti(X, y, theta) doc function % please ...

6 years ago | 1

Answered
typing 'to the power of'
pi^2

6 years ago | 0

Answered
What frustrates you about MATLAB? #2
If colon operator supports an array input it would be nice: A = 1:10; A(:) : A(:)*100 % automatically converting each row ...

6 years ago | 0

Answered
change parameter values in anonymous function
b = 1; a = 1:10; x = 1; y = 2; mm = cell(1, 10); f_handle = @(x,y,a,b) [a*(x+y),b*(x-y)]; for ii = 1:10 mm{i...

6 years ago | 0

| accepted

Answered
Figure 내 좌표 확인이 안됨
Use *ginput()*

6 years ago | 0

Answered
Sort rows of a matrix based on a specific array
v = sort(B); A([1, v(end)], :) = A([v(end), 1], :)

6 years ago | 1

Answered
How to create for loop?
doc rand % please read it

6 years ago | 0

Answered
Add letters to the first and third column of matrix
AA = [repmat("G1",size(A(:,2))), "X "+A(:,1), "Y "+A(:,2)]

6 years ago | 0

| accepted

Load more