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

oltre 9 anni fa | 2

Risposto
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) ...

oltre 9 anni fa | 1

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

oltre 9 anni fa | 1

| accettato

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

oltre 9 anni fa | 2

| accettato

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

oltre 9 anni fa | 1

| accettato

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

oltre 9 anni fa | 1

| accettato

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

oltre 9 anni fa | 1

| accettato

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

oltre 9 anni fa | 1

| accettato

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

oltre 9 anni fa | 2

| accettato

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

oltre 9 anni fa | 1

Risposto
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)

oltre 9 anni fa | 1

| accettato

Risposto
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([...

oltre 9 anni fa | 1

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

oltre 9 anni fa | 2

Risposto
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) ...

oltre 9 anni fa | 1

| accettato

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

oltre 9 anni fa | 2

| accettato

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

oltre 9 anni fa | 1

Risposto
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)

oltre 9 anni fa | 2

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

oltre 9 anni fa | 1

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

oltre 9 anni fa | 1

| accettato

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

oltre 9 anni fa | 2

| accettato

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

oltre 9 anni fa | 1

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

oltre 9 anni fa | 1

Risposto
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; ...

oltre 9 anni fa | 1

| accettato

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

oltre 9 anni fa | 1

Domanda


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

oltre 9 anni fa | 1 risposta | 0

1

risposta