Gelöst


Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
For a row vector: V=[7 1 2 -3] there is one sign change (from 2 to -3). So, the function you write must return N=1. F...

mehr als ein Jahr vor

Beantwortet
how can I run function in file exchange
You're right, that sauvola.m that you linked has only 45 lines (but there's no actual end that terminates the function definitio...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
How to select, or filter, the external border/boundary in a set of (x,y)-points?
ismember As in borders = load(websave('rd', "https://nl.mathworks.com/matlabcentral/answers/uploaded_files/1430803/borders.ma...

mehr als ein Jahr vor | 1

Beantwortet
Plot a mean of ten lines of different resolution
I see, this is overly complicated. Not as in complex or difficult, as in made needlessly overly complicated. Let's just say you...

mehr als ein Jahr vor | 0

Beantwortet
FFT from a excel file
Well, make sure that the data contained in channel1Data2 is numeric (double, single, int8, etc..). From the question title it ...

mehr als ein Jahr vor | 0

Gelöst


Determine point is located in a circle or not
Using input [x] and [y], determine the points (x,y) is located inside of circle (x^2+y^2=1) if point is located in circle, outp...

mehr als ein Jahr vor

Gelöst


Average speed for the entire trip
The input is two speeds (for the trip and return trip) and output is average speed. Assume units are consistent, say miles per h...

mehr als ein Jahr vor

Gelöst


Test if a matrix is symmetric
Write a logical function that returns 1 if the input matrix is symmetric and 0 otherwise.

mehr als ein Jahr vor

Beantwortet
How to check whether partial correlation is significant or not at 5% significance level?
A partial correlation means you are controlling or "partialing out" some variance that is explained by -usually- another (3rd) v...

mehr als ein Jahr vor | 0

Beantwortet
How To multiply this Formula to run this code Please
The fact that there is the need for a loop for these operations, that b is not simply obtained with b=-T.*h, that [ones(1,i-1), ...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
How to plot Confusion Matrix with tolerence limit ?
So you just want to translate the pseudo code above into working code and choose how to best plot it. The pseudo code probably d...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
I can't run the code I wrote the way I want. Please help me
By "I cannot change the K value at every T value" I imagine you need K to change for every iteration and therefore have sitll 6 ...

mehr als ein Jahr vor | 0

Beantwortet
How shall I resolve the warning of Merging of Pdfs?
Nice little utility (and overall apache pdfbox functionality), I just tried it, it worked and it didn't even give me an error (b...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
Concatenate two vectors with different dimensions and sort the result in an ascending order.
vertcat(A,B) or cat(1,A,B) or just [A;B] is what you need to concatenate vertically. then just sort Your code however gives the...

mehr als ein Jahr vor | 1

Beantwortet
How can I get latitude and longitude range for each US state in MATLAB?
With: states = shaperead('usastatelo'); one for example gets 'BoundingBox', 'X', 'Y' among others for each US state states(is...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
How do I create a colored intensity plot from location and intensity values
Could imagesc work? sysize = 100; maxintensity = 20; npoints = 13; coords = randi(sysize,[npoints,2]); imatc = nan(sysize); ...

mehr als ein Jahr vor | 1

| akzeptiert

Beantwortet
Problem with array and save file?
Do you need a 3D cell and then rehsape it or can you create it like the 2D table you want already? videosn = ["Searching for Bo...

mehr als ein Jahr vor | 0

| akzeptiert

Gelöst


Find x in provided equation!
x^2-2*x+1=0 This polynomial can be expressed by using each term's coefficients, such as [1 -2 1]. Using the polynomial ...

mehr als ein Jahr vor

Gelöst


Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

mehr als ein Jahr vor

Gelöst


Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

mehr als ein Jahr vor

Beantwortet
I would like to find bursts among neuronal spikes.
There are several features that you may want to take into account depending on your data and on what you want to do. The simples...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
Why do I see a drop in the last datapoint (Nyquist frequency) of the spectra derived from pwelch?
It may be because it's the Nyquist frequency, rolloff/aliasing/edge artefacts should happen afterwards at higher freqs but in so...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
Reconstruction of a Signal from the Real Part of Its Discrete Fourier Transform for matlab
N = 14; %ns = 0:N; xn = 1/2*(randn(N, 1) +1i*randn(N,1)); %random complex signal x_n = [0+0i;xn;zeros([N,1])+0i]; % M or nume...

mehr als ein Jahr vor | 1

Beantwortet
I am getting the same processed image result from easch iteration of the loop.I want to get the respective processed image from each iteration of the loop.
COuld the problem (just a first glance) be here? myFiles = dir(fullfile(myDir,'*.png')); %gets all png files in struct for k ...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
Plotting surface tangent to surface plot
You should use a matrix, not a scalar or vector, as the error says. Z (and T) are vectors, probably an issue with how you defi...

fast 2 Jahre vor | 0

Beantwortet
How in the world am I supposed to install MATLAB on Linux Ubuntu 20.04?!
cd mounted/directory/with/matlab ./install But you probably already tried that. Add sudo first before the command maybe. You...

fast 2 Jahre vor | 0

Beantwortet
Indexing in complex cell arrays
To simplify, since you are working with cells that contain only single colums or rows (and not multiple like in a matrix), a{1} ...

fast 2 Jahre vor | 0

| akzeptiert

Beantwortet
Extract data points from multiple plot in one figure on Matlab
Your figure axes have 3 graphic objects, the first is the green line and the last is the Observed and Simulation ones. In betwee...

fast 2 Jahre vor | 0

Beantwortet
plot running time complexity
Well, in this figure the functions behind the lines are just not the simple ones displayed. Otherwise for example all n^n and n^...

fast 2 Jahre vor | 0

| akzeptiert

Gelöst


Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

fast 2 Jahre vor

Mehr laden