Answered
how to find local minima
findpeaks(-volt)

6 years ago | 1

Answered
How to represent a set of matrices into a single cell?
E = num2cell([A(:), B(:), C(:), D(:)], 2); E = reshape(E, a, b)

6 years ago | 0

| accepted

Answered
draw a simple complex function
By defining z as a function of x and y and using *fplot()* doc fplot

6 years ago | 0

Answered
subtraction bwtween rows of a field
Before all the loops bond_vec = cell(100, 611); Inside the second loop bond_vec{ii, k} = ... rest remains unchanged ...

6 years ago | 0

| accepted

Answered
Undefined function "transprob" for input arguments of type "table"
You may not have the license for it.

6 years ago | 0

| accepted

Answered
How to create cell followed by uniform distribution?
z = arrayfun(@(x){round((b-a).*rand(1,3) + a)},1:3*2,'un',0); A = reshape(z, 3, [])

6 years ago | 0

| accepted

Answered
two random number columns
[rand(5, 1), randi([0, 1], 5, 1)]

6 years ago | 0

| accepted

Answered
fopen syntax, a new usage???
It’s not so complicated [] is used for concatenation ['name', '.txt'] % try it in command window and see what happens

6 years ago | 0

| accepted

Answered
create txt files with specific names
for ii = 3:-1:1 Use *sprintf()* to generate filenames: sprintf('RSN%d.txt', ii)

6 years ago | 0

| accepted

Answered
How to extract numbers from a string?
sscanf(xx, '[%d, %d]', [1,inf]) %or str2double(regexp(xx, '\d*', 'match'))

6 years ago | 1

| accepted

Answered
How do I print [%] in a title plot while using LaTeX interpeter?
title('$\eta \left[\%\right]$','interpreter','latex','FontSize',14)

6 years ago | 5

| accepted

Answered
Adding multiple rows of a cell array
Edit: cellfun() is a loop in disguise by the way. for k = 1:numel(cell_array) cell_array{k}(end+1,:) = sum(cell_array{...

6 years ago | 0

Answered
how can i make this work
x = zeros(6,1); ./ .*

6 years ago | 0

Answered
How do I plot separately the rows of a matrix?
plot(matrix.')

6 years ago | 0

Answered
how to plot frequency spectrum of the signal
<https://www.mathworks.com/help/matlab/ref/fft.html#buuutyt-10 *Cosine Waves*>

6 years ago | 0

Answered
How to store data
dp = pi/100; Angle = pi : dp : (2*pi - dp); D = 0.05; x = (D/2) * cos(Angle); y = (D/2) * sin(Angle); r = sqrt(...

6 years ago | 0

| accepted

Answered
Is there maximum number of characters of the figure title latex interpreter string?
Painful but manageable ;) first = sprintf('$$\\psi = %.0f^{\\circ}$$', rotationAngle); second = sprintf('$$\\theta = %.0f^...

6 years ago | 0

| accepted

Answered
Dimensions of matrices being concatenated are not consistent ?
You cannot have holes in a matrix so append NaN at the end. By the way you refer to them as string but in fact they are double a...

6 years ago | 0

| accepted

Answered
how do I plot 2 matrix with different n of row and column (both are 9 x 6)
SO only has 8 rows. And Ofcourse supply matrices as a vector using *(:)*

6 years ago | 0

Answered
0x1 empty double row vector
x = [-200:25:0, 20:20:100]

6 years ago | 1

| accepted

Answered
Stacking many vector data into one resultant vector data but of the same length
nrecords = 10; Data = cell(nrecords, 1); for k = 1:nrecords Data{k} = dlmread(sprintf('data%d.txt',k)); end ...

6 years ago | 0

Answered
how to match x-axis subplots?
<https://www.mathworks.com/matlabcentral/answers/563312-how-to-match-x-axis-subplots#comment_932861>

6 years ago | 0

| accepted

Answered
Indexing a cell array column from multiple sources
FileList.name = {'sjdjd.wav', 'sjdjf.wav'}; % example names combinedToneNames = {'ClowD(-0dB)', 'EF(-0dB)', 'BChigh(-0dB)'}...

6 years ago | 0

| accepted

Answered
How to create array xy corresponding z
xyz = {x(:), y(:), z(:)}

6 years ago | 0

Answered
Error in smimport(' ') command: Illegal use of reserved keyword "end" AND Attempt to execute SCRIPT smimport as a function
<https://www.mathworks.com/matlabcentral/answers/563081-error-in-smimport-command-illegal-use-of-reserved-keyword-end-and-attemp...

6 years ago | 0

| accepted

Answered
how can i make this loop work
function gpaname [x, y]= deal(cell(10,1)); for ii = 1:10 x{ii} = input('please enter your name=' , 's'); y{ii} ...

6 years ago | 0

Answered
Selecting specific columns in a for loop
jj = 401:500; Meas_Load = cell(numel(jj), 1); for k = 1:numel(jj) Meas_Load{k}= Rload2 - jj(k)*RPVR; end celld...

6 years ago | 0

| accepted

Answered
i=1, 2, 3,,, However, when (a-i)> 0 is calculated.
clear station a = 4 ii = 1:a-1; N = 2; % any nunber station(ii+2) = (4-(4-ii))*N

6 years ago | 0

| accepted

Load more