답변 있음
How to limit number of repetition
Add a counter: esc = 0; num = 0; while esc ~= 27 && num < 30 ... num = num + 1; end if num == 30 ...save your...

대략 4년 전 | 0

| 수락됨

답변 있음
Filter Sound from Data
filtfilt works without shifting the data.

대략 4년 전 | 0

제출됨


NoverK
Fast and accurate N over K

대략 4년 전 | 다운로드 수: 1 |

0.0 / 5
Thumbnail

답변 있음
How to calculate mean across the elements of a cell?
Cells are a really bad way to store data, if you want to perform calculations with them. Simply convert them to a numerical arra...

대략 4년 전 | 0

| 수락됨

답변 있음
Audioread error with .wav file path on windows
Check this manually: FromDir= 'C:\Users\emily\Coding\vocal\output'; RawMicDir='C:\Users\emily\Coding\vocal\data'; SaveDir='C:...

대략 4년 전 | 0

| 수락됨

답변 있음
How to create a .mat file with variables
See: help save Xc = 1:10; Yc = rand(1, 10); save('YourFile.mat', 'Xc', 'Yc')

대략 4년 전 | 0

| 수락됨

답변 있음
Analysing multiple csv files
See: https://www.mathworks.com/matlabcentral/answers/57446-faq-how-can-i-process-a-sequence-of-files readmatrix

대략 4년 전 | 0

답변 있음
Loop over an array
There is no need for a loop: T1_cis_index = (Theta1 > -90) & (Theta1 < 90); T1_trans_index = (Theta1 > 90) | (Theta1 < -90);...

대략 4년 전 | 0

| 수락됨

답변 있음
How to generate random number within specific values
Sorry, your information are still not clear. I try it with a most likely not satisfying solution to demonstrate the problem: % ...

대략 4년 전 | 0

| 수락됨

답변 있음
Why does my m file open too slowly?
Do you have a folder in Matlab's PATH, which is stored on a network drive or e.g. Dropbox? Then Matlab might scan the remote fol...

대략 4년 전 | 1

답변 있음
How to apply butterworth filter to a cell array?
You cell has the size {7x1}, not {1x7}. filter needs one numerical vector or matrix as input. So use a loop: result = cell(1, ...

대략 4년 전 | 0

| 수락됨

답변 있음
How can I count the sum of inverse value of each non zero elements of a matrix?
x = [2 1 0 0; ... 0 1 1 1; ... 0 1 1 1; ... 1 0 3 1]; r = sum(1 ./ x(x ~= 0)) x = [2 1 0 NaN; ... 0 1 ...

대략 4년 전 | 0

답변 있음
Do constants created in primary function transfer over to subsidiary functions created?
The variables are shared with nested functions, but not with other function. So you have to provide them as arguments, or use ne...

대략 4년 전 | 0

답변 있음
Can someone explain why the operations in my question are not returning zero?
Welcome to the world of numerical maths. This effect is well known and discussed frequently. Therefore you find it in the FAQ: W...

대략 4년 전 | 1

| 수락됨

답변 있음
etime input arguments, what do they mean?
Take a look into the documentation: doc clock doc etime Then run some own tests: type this in the command window: clock % w...

대략 4년 전 | 0

| 수락됨

답변 있음
Repeating the rows of an array by a number given by another array
Use repelem, which is the built-in efficient solution for repeating elements: x = [linspace(1,4,4)' linspace(5,20,4)'] I = [2 ...

대략 4년 전 | 3

| 수락됨

답변 있음
How to extract specific rows from matrix by matching with other matrix?
match = ismember(LargerMatrix(:, 1:2), SmallerMatrix, 'rows'); Result = LargerMatrix(match, :); [EDITED] Consider Walter's ...

4년 초과 전 | 0

| 수락됨

답변 있음
what is the alternative function for mipimbin?
This is not a toolbox function of Matlab. So please read in the book, where you can get the codes for the functions. If you hav...

4년 초과 전 | 1

답변 있음
Request for FULL Documentation of Obsolete Products
The documentation is part of Matlab. So if you have a full license, simply download the installation files and install the versi...

4년 초과 전 | 0

| 수락됨

답변 있음
How can I make my plot to originate from 0?
Replace: plot(1:18, ...) by plot(0:17, ...)

4년 초과 전 | 0

| 수락됨

답변 있음
How can I multiply a vector by a scaling value with a loop?
A = rand(1, 100); S = 0.2 .^ (1:10).'; B = S .* A; A smaler example: A = rand(1, 4) S = 0.2 .^ (1:3).' B = S .* A

4년 초과 전 | 0

답변 있음
Array indices must be positive integers or logical values
Welcome to the world of numerical maths. This is a frequently ask question, see: FAQ: Why is 0.3-0.2-0.1 not equal to 0? Trust...

4년 초과 전 | 0

답변 있음
How can I rotate a matrix 45 degrees?
C = [-6 -6 -7 0 7 6 6 -3 -3 0 0 -6; -7 2 1 8 1 2 -7 -7 -2 -2 -7 -7] plot(C(1,:),C(2,:)); xlim([-10 10]); ylim([-10 10]); a...

4년 초과 전 | 3

답변 있음
how can I solve this exceeding matrix index? and what is wrong in my ode23s solver?
The failing term is: T(kkf+nx/2). kkf+nx/2 is 5002, but T has 5000 elements only. elseif j==nz && i~=1 && i~=nx/2 Txz(kkf...

4년 초과 전 | 0

답변 있음
I'm an employee and use Matlab in my work computer. Is that possible to obtain some kind of free license to install Matlab in my home computer for personal use?
Not for free, but your employer can buy a license for you. (EDITED: See Image Analysts answer!) There is a home use version als...

4년 초과 전 | 0

답변 있음
plotting a graph with 2 x-axis in a tile plot
I've found mysterious lines: t=tiledlayout(3,2) ax1=axes(t); ... ax3=nexttile % ??? ax3=axes(t); ... ax3=axes(t); % ?...

4년 초과 전 | 0

답변 있음
How to delete certain number of rows in each variable contained in a table which is contained in a structure?
Would the first 400 rows be: cropStart = 400; Data.Data(3).Dot_Data(1:cropStart, :) = [];

4년 초과 전 | 0

| 수락됨

답변 있음
I am subtracting a 3x1 vector by another 3x1 vector and I am getting an error that my matrix dimensions must agree.
Use the debugger to examine the problem. Type in the command line: dbstop if error Then run the code again. When Matlab stops ...

4년 초과 전 | 0

답변 있음
Generating n bit random numbers with each bit sampled N times.
bin_seq = randi([0 1], 1, num_bit); result = repelem(bin_seq, 1, 100); Alternatively: result = reshape(repmat(bin_seq, 100, ...

4년 초과 전 | 0

| 수락됨

답변 있음
How to multiply each element with next one in the same row, then sum the product
A = [-1 -1; -1 1; 1 -1; 1 1]; nA = size(A, 2); B = [sum(A, 2), sum(A(:, 1:nA-1) .* A(:, 2:nA), 2)] The 2nd column of B is t...

4년 초과 전 | 0

더 보기