統計
All
Feeds
解決済み
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
5年弱 前
解決済み
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...
5年弱 前
解決済み
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
5年弱 前
回答済み
How to set out put files to save at user selected path?
You have to set selected_dir as a global variable so that other section of the gui can access it.
How to set out put files to save at user selected path?
You have to set selected_dir as a global variable so that other section of the gui can access it.
8年以上 前 | 0
| 採用済み
回答済み
FFT for ideal filters
You do realise that the diagram you uploaded is the impulse responses for the ideal filters. All you need to do is create an ...
FFT for ideal filters
You do realise that the diagram you uploaded is the impulse responses for the ideal filters. All you need to do is create an ...
8年以上 前 | 0
回答済み
How to separate a matrix by zeros?
ne0 = find(A(:,1)~=0)'; % Nonzero Elements (transposed) ix0 = unique([ne0(1) ne0(diff([0 ne0])>...
How to separate a matrix by zeros?
ne0 = find(A(:,1)~=0)'; % Nonzero Elements (transposed) ix0 = unique([ne0(1) ne0(diff([0 ne0])>...
8年以上 前 | 0
| 採用済み
回答済み
how I can know if a string is empty or not!?
You can use the length() a = ''; stringlen = length(a) % stringlen = 0
how I can know if a string is empty or not!?
You can use the length() a = ''; stringlen = length(a) % stringlen = 0
8年以上 前 | 2
回答済み
Combining 2 Arrays(of equal or different dimensions)
First Exercise: If we create C2 that is an array of zeros which has double the length of A2 and B2 combine. We can space A2 and ...
Combining 2 Arrays(of equal or different dimensions)
First Exercise: If we create C2 that is an array of zeros which has double the length of A2 and B2 combine. We can space A2 and ...
8年以上 前 | 2
| 採用済み
回答済み
Make an while-loop stop when conditions is fullfilled
Just use an AND logic '&' to identify both condition for the while loop. clc clear %% Website %f(x) = x^3 - x ...
Make an while-loop stop when conditions is fullfilled
Just use an AND logic '&' to identify both condition for the while loop. clc clear %% Website %f(x) = x^3 - x ...
8年以上 前 | 0
回答済み
How to plot multiple vertical lines
x=[1;1;4;4;5;5;5]; ystart=[3;33;7;23;5;15;27]; ystop=[32;45;15;45;13;26;42]; x = [x x]; nloop = size(x,1); ...
How to plot multiple vertical lines
x=[1;1;4;4;5;5;5]; ystart=[3;33;7;23;5;15;27]; ystop=[32;45;15;45;13;26;42]; x = [x x]; nloop = size(x,1); ...
8年以上 前 | 0
回答済み
for loop for variables
@Stephen: Haha I read the same thing somewhere online. But that didn't stop me :3 for i=1:10 eval(sprintf('A%i = i',...
for loop for variables
@Stephen: Haha I read the same thing somewhere online. But that didn't stop me :3 for i=1:10 eval(sprintf('A%i = i',...
8年以上 前 | 2
回答済み
How do i fix the error in this code?
The format of the code was so bad that your end case were mixed with the for loop and if statement. Anyway fixed if for you. ...
How do i fix the error in this code?
The format of the code was so bad that your end case were mixed with the for loop and if statement. Anyway fixed if for you. ...
8年以上 前 | 0
回答済み
Summing from control variable in loop to end of loop / from beginning
Don't necessary need a loop you could do something like this startValue = 2; control = 10; a=[1:1:1738; 11:1:1748]'...
Summing from control variable in loop to end of loop / from beginning
Don't necessary need a loop you could do something like this startValue = 2; control = 10; a=[1:1:1738; 11:1:1748]'...
8年以上 前 | 0
回答済み
How to dynamically update the matrix ?
This only works if c1 and c2 have the same length A = []; c1=[1 1 2 2]; c2=[3 3 4 4]; nloop = length(c1); ...
How to dynamically update the matrix ?
This only works if c1 and c2 have the same length A = []; c1=[1 1 2 2]; c2=[3 3 4 4]; nloop = length(c1); ...
8年以上 前 | 0
| 採用済み
回答済み
How to filter required data
In order for you to run this code you must convert your data (aka the table) into cell using the cell2table() and store it into ...
How to filter required data
In order for you to run this code you must convert your data (aka the table) into cell using the cell2table() and store it into ...
8年以上 前 | 0
| 採用済み
回答済み
May i ask what is mean by length of audio? is that same with number of sample in audio? can give me some example to explain..
Length of the audio can be expressed in time. Example,this audio is 30 second long. It can also be express as the number of s...
May i ask what is mean by length of audio? is that same with number of sample in audio? can give me some example to explain..
Length of the audio can be expressed in time. Example,this audio is 30 second long. It can also be express as the number of s...
8年以上 前 | 0
| 採用済み
回答済み
SCRIPT FILE RUNNING ERROR
I ran your code and your stuck in an infinite loop. The f(m) doesn't changes value. Because the variable m doesn't change after...
SCRIPT FILE RUNNING ERROR
I ran your code and your stuck in an infinite loop. The f(m) doesn't changes value. Because the variable m doesn't change after...
8年以上 前 | 1
回答済み
Hi, I would like to reduce the noise in the scattered data of Voltage Vs time plot. Please help me with the same.
I would reject any value that is beyond the standard deviation and estimate a function for the sinusoid.
Hi, I would like to reduce the noise in the scattered data of Voltage Vs time plot. Please help me with the same.
I would reject any value that is beyond the standard deviation and estimate a function for the sinusoid.
8年以上 前 | 0
回答済み
How to declare a variable that changes it's size after each loop iteration?
Dunno if this code would run. Basically I modify the for loops and added two variable (temp_delay_points_local, temp_CFO_points_...
How to declare a variable that changes it's size after each loop iteration?
Dunno if this code would run. Basically I modify the for loops and added two variable (temp_delay_points_local, temp_CFO_points_...
8年以上 前 | 0
回答済み
how to find array of second minimum value based on the index value
Unique function returns the vector in ascending order discarding any repetitive values. And the find function returns the index ...
how to find array of second minimum value based on the index value
Unique function returns the vector in ascending order discarding any repetitive values. And the find function returns the index ...
8年以上 前 | 0
回答済み
starting location of vector
This is the most simplest solution I came up with. Using the find function and subtract the positions from the next one. g ...
starting location of vector
This is the most simplest solution I came up with. Using the find function and subtract the positions from the next one. g ...
8年以上 前 | 0
回答済み
how to remove a marker from 1 end of a line
x = 0:1 y=0:1 figure, hold on, line(x,y,'LineStyle','-') plot(1,1,'o')
how to remove a marker from 1 end of a line
x = 0:1 y=0:1 figure, hold on, line(x,y,'LineStyle','-') plot(1,1,'o')
8年以上 前 | 0
| 採用済み
回答済み
Attempted to access stepcount(0); index must be a positive integer or logical.
for j=1:M exactly what is M? Cause it was not previously defined in your code
Attempted to access stepcount(0); index must be a positive integer or logical.
for j=1:M exactly what is M? Cause it was not previously defined in your code
8年以上 前 | 0
解決済み
Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...
9年弱 前
解決済み
Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...
10年弱 前
解決済み
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
10年弱 前
解決済み
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...
10年弱 前
解決済み
Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...
10年弱 前
解決済み
Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...
10年弱 前