Michelangelo Ricciulli
Followers: 0 Following: 0
Ph.D. in Information Technologies
Feeds
已回答
Subscripted assignment dimension mismatch.Error in fnc (line 12) matrix1(1,1)=cos(k*delta_z);matrix1(1,2)=(i/q)*sin(k*delta_z);
Hi, Before answering the question, I want to give you a couple of suggestions. First, try to post your code in better format...
Subscripted assignment dimension mismatch.Error in fnc (line 12) matrix1(1,1)=cos(k*delta_z);matrix1(1,2)=(i/q)*sin(k*delta_z);
Hi, Before answering the question, I want to give you a couple of suggestions. First, try to post your code in better format...
6 years 前 | 0
| 已接受
已回答
How to generate a joint probability matrix from a data matrix
Hi, A simple way to get the joint probability matrix for two dimension is using the hist3 function, (read the documentation <ht...
How to generate a joint probability matrix from a data matrix
Hi, A simple way to get the joint probability matrix for two dimension is using the hist3 function, (read the documentation <ht...
6 years 前 | 1
| 已接受
已回答
Graph of function not match y(variable)
Hi Gabriel, you are mixing up the indexes of the vector and the argument of a mathematical function. y(10) means the 10th value...
Graph of function not match y(variable)
Hi Gabriel, you are mixing up the indexes of the vector and the argument of a mathematical function. y(10) means the 10th value...
6 years 前 | 0
| 已接受
已回答
How can I show variable index in a for loop?
Hi there, a quick and dirty method could be using the eval function. First you define the variable name var=['x' num2str(...
How can I show variable index in a for loop?
Hi there, a quick and dirty method could be using the eval function. First you define the variable name var=['x' num2str(...
6 years 前 | 2
已回答
Problem Writing an Autoregressive Process Function
Hello Roger, First I suppose the length N, is the output vector length. Right? Let's say your initial index is 1. Thus, samp...
Problem Writing an Autoregressive Process Function
Hello Roger, First I suppose the length N, is the output vector length. Right? Let's say your initial index is 1. Thus, samp...
7 years 前 | 0
已回答
How to optimize this loop
I think that this should save some time, since it avoids the for-loop: i = 1:n; A(i,B(i,1)) = 1;
How to optimize this loop
I think that this should save some time, since it avoids the for-loop: i = 1:n; A(i,B(i,1)) = 1;
7 years 前 | 0
已回答
Nonlinear regression with categorical predictor?
Ok, a very simple way to do it is the following. You can use the function fminunc, that finds the minimum value of something....
Nonlinear regression with categorical predictor?
Ok, a very simple way to do it is the following. You can use the function fminunc, that finds the minimum value of something....
7 years 前 | 1
| 已接受
已回答
How can I use the 'opposite' of findpeaks input argument?
Hello, It seems there is no "built-in" way to do this. But you could follow the simple example <https://it.mathworks.com/matla...
How can I use the 'opposite' of findpeaks input argument?
Hello, It seems there is no "built-in" way to do this. But you could follow the simple example <https://it.mathworks.com/matla...
7 years 前 | 0
| 已接受
已回答
How to vectorize for-loop for anonymous function that takes in row vectors as inputs, and spits out a single number as output.
Hi, I think that you need just to slightly modify your function func. Let's say it accepts only ROW vectors like a=[1...
How to vectorize for-loop for anonymous function that takes in row vectors as inputs, and spits out a single number as output.
Hi, I think that you need just to slightly modify your function func. Let's say it accepts only ROW vectors like a=[1...
7 years 前 | 1
| 已接受
已回答
How can I recreate this wave using the sawtooth wave function?
Hi! You just need to slightly modify the function sawtooth, putting a minus sign before it and adding a division by a factor 2 ...
How can I recreate this wave using the sawtooth wave function?
Hi! You just need to slightly modify the function sawtooth, putting a minus sign before it and adding a division by a factor 2 ...
7 years 前 | 0
已回答
Why are fft diagrams mirrored?
Hi Dhyan, actually, it is not always the case, since it is true only for real signals. It can be proven mathematically that wh...
Why are fft diagrams mirrored?
Hi Dhyan, actually, it is not always the case, since it is true only for real signals. It can be proven mathematically that wh...
7 years 前 | 4
| 已接受
已回答
Circular moving point at a set velocity
Assuming that your velocities are already angular velocities (number of radians per time unit), adding a for loop and a vector t...
Circular moving point at a set velocity
Assuming that your velocities are already angular velocities (number of radians per time unit), adding a for loop and a vector t...
7 years 前 | 2
| 已接受
已回答
How do I reset the signal output?
I think that the answer you are searching is the "modulo" operation. Let's say your ramp is stored in vector y and you want the ...
How do I reset the signal output?
I think that the answer you are searching is the "modulo" operation. Let's say your ramp is stored in vector y and you want the ...
7 years 前 | 0
已回答
for loop or str2num incorrectly adding 48 to results?
It is doing that because every character of the string '10', is memorized in matlab with an encoding. So '0' is actually stored ...
for loop or str2num incorrectly adding 48 to results?
It is doing that because every character of the string '10', is memorized in matlab with an encoding. So '0' is actually stored ...
7 years 前 | 1
| 已接受
已回答
How do you sum a vector and concatenate the outputs into the original array or vector.
I think this is the solution: S=sum(ArrayZ,1) %%outputs the sum of the colm ArrayZ=[ArrayZ; S]; %% append the sums ...
How do you sum a vector and concatenate the outputs into the original array or vector.
I think this is the solution: S=sum(ArrayZ,1) %%outputs the sum of the colm ArrayZ=[ArrayZ; S]; %% append the sums ...
7 years 前 | 0
已回答
Error using griddedInterpolant The grid vectors do not define a grid of points that match the given values
Hi! The error comes in the second iteration of the for loop. In fact when you call Strain_c1Theta=interp1(T,Strain_c1Thet...
Error using griddedInterpolant The grid vectors do not define a grid of points that match the given values
Hi! The error comes in the second iteration of the for loop. In fact when you call Strain_c1Theta=interp1(T,Strain_c1Thet...
7 years 前 | 1
| 已接受
已回答
Trying to use ezplot but i can't seem to get it. Whats wrong with my code?
If I understood correctly what you are trying to do, V11 is no more dependent on any of the initial symbols Vs, d and t. So, if...
Trying to use ezplot but i can't seem to get it. Whats wrong with my code?
If I understood correctly what you are trying to do, V11 is no more dependent on any of the initial symbols Vs, d and t. So, if...
7 years 前 | 0
| 已接受