已回答
error with gmail sending
Make sure you are using some lines of code before using sendmail function: UserName = 'yourmail@gmail.com'; passWord = '...

10 years 前 | 2

已回答
matrix operaions sums multiplications
It seems that A(:,3:end) are never used. If that is the case, then you can simply use a for loop: for k = 1:size(B,1) ...

10 years 前 | 1

已回答
Selection of priority data
data=[3;4;8;NaN;NaN;NaN;7;4;3;NaN;NaN;2;3;NaN;9]; findNaN = find(isnan(data)); first = findNaN(1); numb...

10 years 前 | 1

| 已接受

已回答
selecting the last 60 rows in a matrix with an uncertain number of rows
last60rows = a(end-59:end,:)

10 years 前 | 2

| 已接受

已回答
I wanna define function which has flexible number of argument.
function out = F(varargin) % do stuffs % y = varargin{1}+varargin{2} % out = y+1; etc. For flexible number of...

10 years 前 | 1

| 已接受

已回答
Element to element Array Multiplication with all answers.
c = bsxfun(@times,a,B1) out = sum(c,2)

10 years 前 | 1

| 已接受

已回答
GUI I want to take datas from a struct into my listbox
There are multiple ways to do so. One of them: I assume you have a pushbutton to display in the names in the listbox. And if so,...

10 years 前 | 1

| 已接受

已回答
How to get only those output values which lie under a given curve!
Perhaps, you unconsciously mistyped the x coordinate of third point. I use 3800 instead of 2100, but use what the actual value i...

10 years 前 | 1

| 已接受

已回答
find power of signal
In time domain: for discrete signal x(n) Instantaneous power = |x(n)|^2 Average power = (1/N) * sum(|x(n)|.^2) N = data...

10 years 前 | 2

| 已接受

已回答
Image types and matrix multiplication
I guess I=Lena? And, T = load('Wav.mat'); % the .mat file you uploaded T1 = T.T1; ? If yes, then replace inverse ...

10 years 前 | 1

已回答
Cumnwise multiplication between a matrix and a vector.
A = [1 2 3; 7 2 4; 2 0 4] B = [1 2 3] C = bsxfun(@times,A,B)

10 years 前 | 1

| 已接受

已回答
How to concatenate string vectors of unequal length?
v1 = {'a' 'b' 'c'}'; v2 = {'d'}'; v3 = {'e' 'f'}'; Lv1 = length(v1); Lv2 = length(v2); Lv3 = length(v3); n = max([...

10 years 前 | 1

已回答
How to clear data from plot in matlab GUI, but then re-plot it without re-running the GUI
Use cla under the Callback function of your button. Don't use *clear all* command, as it clears all variables. Examples: cl...

10 years 前 | 2

已回答
I have a circuit that I want to gain its transfer function.I've attached a JPG file.
Input voltage (across left C) = Vi Output voltage (across right C) = Vo Apply voltage divider rule in RL and C (at right) ...

10 years 前 | 1

| 已接受

已回答
Finding peaks in data based on certain threshold
Once I had to write a function for this type of problem in on of my projects. Seeing your question here, I have uploaded that fi...

10 years 前 | 2

| 已接受

已回答
How can I substitute a variable?
a= 5; syms x y = a*sin(x).^2 ./(sin(x) + cos(x)); subs ( y,{x},{2} )

10 years 前 | 1

已回答
Count the index of the array
A=[0 0 0 0 0 0 0 0 0 10 0 0 0 0 15 0 17]; sum(A>0)

10 years 前 | 2

已回答
integration of FFT
K_fourier is double type in your code. int cannot take double type as the function. @ Thorsten: int performs all symbolic, de...

10 years 前 | 1

已回答
how to generate random numbers from a distribution which is the convolution of exponential distributions?
i = 0:0.1:10; I1 = 1; I2 = 1; % define as per your requirment p1 = i/(I1^2).*exp(-i/I1); % first exponential function p2...

10 years 前 | 1

| 已接受

已回答
how can i get ode15s ??
[x,y] = ode15s(YourFunction,LowerIntegrationLimit,UpperIntegrationLimit,InitialCondition)

10 years 前 | 2

| 已接受

已回答
Importing specific rows of Data from Text file
I think the following code will serve your purpose. I assume that the text file is named as *textFile.txt* , and is saved in you...

10 years 前 | 1

已回答
How can i calculate & plot amplitudes of first 40 harmonics of char and plot the letter ?
I see a couple of problems in the code: First, ampu(n+1) means a scaler, but sqrt(au.^2+bu.^2) is a vector. So, you can form...

10 years 前 | 1

已回答
2D matrix to 3D matrix given index in the 2D matrix col1
C = sortrows(A,1); indx = 0; for k = 1:size(C,1)-1 if C(k,1) == C(k+1,1) indx = indx+1; ...

10 years 前 | 1

| 已接受

已回答
Generating a for loop and writing data
for i = 1:size(data,1)/8 xx=data(8*i-7:8*i,2:3); yy=data(8*i-7:8*i,1); % append other stuffs here, use loop index to...

10 years 前 | 1

提问


How can I sum the elements of a symbolic vector?
Hello, I have a symbolic vector X = [1, x1, x2, x1^2, x2^2, x1*x2], where x1 and x2 are symbols. I want to sum the vector so ...

10 years 前 | 1 个回答 | 0

1

个回答