Beantwortet
how to write summation
S = 0; for p = 1:i+1 % Indices are 1-based in Matlab S = S + A(p) + C(i - p); end

mehr als 4 Jahre vor | 1

Beantwortet
delate a specific number in an array and the number that have the index corresponding to the this number in an other array
A=[0,0,3,4,5,6,7,8,9,0]; B=[10,9,8,7,6,5,4,3,2,1]; match = (A == 0); A(match) = [] B(match) = [] Or the other way around:...

mehr als 4 Jahre vor | 1

| akzeptiert

Beantwortet
Not sure what's wrong with my code
The providing of variables as inputs and outputs as well as sharing the data using nested cells is explained in the free online ...

mehr als 4 Jahre vor | 0

Beantwortet
I am having a hard time understanding how matrix works.
.* is the elementwise multiplication, while * is the matrix multiplication: [a,b; c,d] .* [e,f; g,h] = [a*e, b*f; c*g, d*h] ...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

Gesendet


NoverK
Fast and accurate N over K

mehr als 4 Jahre vor | 27 Downloads |

0.0 / 5
Thumbnail

Beantwortet
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...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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:...

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

Beantwortet
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);...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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: % ...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 4 Jahre vor | 1

Beantwortet
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, ...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

mehr als 4 Jahre vor | 3

| akzeptiert

Beantwortet
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 ...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 4 Jahre vor | 1

Beantwortet
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...

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
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

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 3

Beantwortet
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...

mehr als 4 Jahre vor | 0

Beantwortet
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...

mehr als 4 Jahre vor | 0

Mehr laden