Answered
Download earlier version of MATLAB as free-trial (R2019a)
Ask the sales team or support of MathWorks. Usually only the current version is provided as trial, but maybe they can make an ex...

4 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
Filter Sound from Data
filtfilt works without shifting the data.

4 years ago | 0

Submitted


NoverK
Fast and accurate N over K

4 years ago | 1 download |

0.0 / 5
Thumbnail

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 1

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 3

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 1

Answered
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 years ago | 0

| accepted

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

4 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 3

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Load more