
gonzalo Mier
Content Feed
답변 있음
How can I plot all iterations of my for loop?
Right now, each plot is plotting only one point. To achieve the behavior you want, create the vectors and plot them outside the ...
How can I plot all iterations of my for loop?
Right now, each plot is plotting only one point. To achieve the behavior you want, create the vectors and plot them outside the ...
2년 이상 전 | 1
| 수락됨
질문
How to find if a symbolic operation contains a or function?
I'm trying to find if a symbolic equation has the 'or' function or not. I have tried to do this: syms a b has(a|b,'or') % log...
2년 이상 전 | 답변 수: 1 | 0
1
답변답변 있음
How to change the parameters of a loop
figure; for i=1:9 A(((i-1):i)*9+1) = instructions(i) plot(A(((i-1):i)*9+1)) end
How to change the parameters of a loop
figure; for i=1:9 A(((i-1):i)*9+1) = instructions(i) plot(A(((i-1):i)*9+1)) end
3년 이상 전 | 0
답변 있음
Setting pixel to maximum color values in grayscale image.
You can use uint8 to saturate all the values between 0 and 255. You can test it as: gray_as_RGB = uint8(repmat(grayimg, [1 1 ...
Setting pixel to maximum color values in grayscale image.
You can use uint8 to saturate all the values between 0 and 255. You can test it as: gray_as_RGB = uint8(repmat(grayimg, [1 1 ...
3년 이상 전 | 0
답변 있음
How to solve this question?
Oh, a really interesting problem. Lets try to solve it as easy as possible... Lets propose some ideas: Sum two constant numbe...
How to solve this question?
Oh, a really interesting problem. Lets try to solve it as easy as possible... Lets propose some ideas: Sum two constant numbe...
3년 이상 전 | 0
답변 있음
Standard deviation of decimal numbers
The error you are obtaining is less than 1e-15, which is 0 in practice. If you want to consider this case, you can use a thresho...
Standard deviation of decimal numbers
The error you are obtaining is less than 1e-15, which is 0 in practice. If you want to consider this case, you can use a thresho...
3년 이상 전 | 1
답변 있음
Norm function for 2 variables
n = norm(v) returns the Euclidean norm of vector v. This norm is also called the 2-norm, vector magnitude, or Euclidean leng...
Norm function for 2 variables
n = norm(v) returns the Euclidean norm of vector v. This norm is also called the 2-norm, vector magnitude, or Euclidean leng...
3년 이상 전 | 0
답변 있음
PARFOR Transparency violation error
Parfor loop don't work in GPU, it just multithread your CPU code, so you have to be careful with the variables you use because a...
PARFOR Transparency violation error
Parfor loop don't work in GPU, it just multithread your CPU code, so you have to be careful with the variables you use because a...
4년 이하 전 | 0
답변 있음
Why do i get a blank graph?
You are computing v1 as k1= 0.8*exp(-Ea1/(alpha*R*X(3))); v1=k1*A*X(1); v1 is a matriz of size 1x1. So when you do plot( "v...
Why do i get a blank graph?
You are computing v1 as k1= 0.8*exp(-Ea1/(alpha*R*X(3))); v1=k1*A*X(1); v1 is a matriz of size 1x1. So when you do plot( "v...
4년 이하 전 | 0
| 수락됨
답변 있음
How to import a 3D Python numpy array into Matlab ?
https://stackoverflow.com/questions/10997254/converting-numpy-arrays-to-matlab-and-vice-versa
How to import a 3D Python numpy array into Matlab ?
https://stackoverflow.com/questions/10997254/converting-numpy-arrays-to-matlab-and-vice-versa
4년 이하 전 | 0
답변 있음
Is it possible to do multiple array of data on the same scatter plot;
Scatterplot is a really special function that needs a special syntax to plot more that one scatterplot together. If you need mo...
Is it possible to do multiple array of data on the same scatter plot;
Scatterplot is a really special function that needs a special syntax to plot more that one scatterplot together. If you need mo...
4년 이하 전 | 1
| 수락됨
답변 있음
could anyone help me to solve my question
You don't need if here. You can mix them as: C = B; len_A = min(size(B,1),size(A,1)); C(1:len_A,:) = C(1:len_A,:) - A(1:len_...
could anyone help me to solve my question
You don't need if here. You can mix them as: C = B; len_A = min(size(B,1),size(A,1)); C(1:len_A,:) = C(1:len_A,:) - A(1:len_...
4년 이하 전 | 0
답변 있음
How do I create a matlab function using polyder that not only gives the coefficients but also gives the equation
I think you need here the function poly2sym: https://www.mathworks.com/help/symbolic/poly2sym.html
How do I create a matlab function using polyder that not only gives the coefficients but also gives the equation
I think you need here the function poly2sym: https://www.mathworks.com/help/symbolic/poly2sym.html
4년 이하 전 | 0
| 수락됨
답변 있음
Needs derivative w.r.t. ' y ' & then graph w.r.t ' t '
diff is a function of the symbolic package, so when you try to derivate U, you are derivating a constant, and by a constant, so ...
Needs derivative w.r.t. ' y ' & then graph w.r.t ' t '
diff is a function of the symbolic package, so when you try to derivate U, you are derivating a constant, and by a constant, so ...
4년 이하 전 | 0
| 수락됨
답변 있음
Matlab plots y axis values in plot for array of x arrays
There is no problem here. Matlab is doing what you want. The problem that you see may be because you have one row that is in a l...
Matlab plots y axis values in plot for array of x arrays
There is no problem here. Matlab is doing what you want. The problem that you see may be because you have one row that is in a l...
4년 이하 전 | 0
| 수락됨
답변 있음
how can i make histogram without missing value(with nan,isnan)
You can remove nan before computing the histogram histogram(ws(~isnan(ws(:))))
how can i make histogram without missing value(with nan,isnan)
You can remove nan before computing the histogram histogram(ws(~isnan(ws(:))))
4년 이하 전 | 1
| 수락됨
답변 있음
How to get string field from struct with each element separated
The problem is you are using char instead of string. '1.33' is a vector of char, so if you make a vector of vectors, it compiles...
How to get string field from struct with each element separated
The problem is you are using char instead of string. '1.33' is a vector of char, so if you make a vector of vectors, it compiles...
4년 이하 전 | 0
| 수락됨
답변 있음
how i can change the explicit code to implicit code?
function [T,x] = example(c,k,p,dt,dx) alpha=k/(p*c); lamda=alpha*dt/dx^2; for n=1:4 T(n,1)=100; T(n,6)=25; end fo...
how i can change the explicit code to implicit code?
function [T,x] = example(c,k,p,dt,dx) alpha=k/(p*c); lamda=alpha*dt/dx^2; for n=1:4 T(n,1)=100; T(n,6)=25; end fo...
4년 이하 전 | 1
답변 있음
find largest magnitude in array
A=[-0.1;1;-5;-0.8;-0.4]; tto=find(abs(A) == max(abs(A))) tt=find(abs(A) ~= max(abs(A)))
find largest magnitude in array
A=[-0.1;1;-5;-0.8;-0.4]; tto=find(abs(A) == max(abs(A))) tt=find(abs(A) ~= max(abs(A)))
4년 이하 전 | 0
| 수락됨
답변 있음
how can i use several loops
I will try to explain as best as I can. To do that, I will give values to the variables. nt = 4, nx = 5: for k=1:3 ( = [1,2,3...
how can i use several loops
I will try to explain as best as I can. To do that, I will give values to the variables. nt = 4, nx = 5: for k=1:3 ( = [1,2,3...
4년 이하 전 | 0
답변 있음
Correlation between two row matrices
Like that, each value of "a" is correlated to each value of "b", but applying the formula of the correlation, the correlation o...
Correlation between two row matrices
Like that, each value of "a" is correlated to each value of "b", but applying the formula of the correlation, the correlation o...
4년 이하 전 | 2
| 수락됨
답변 있음
Using function simple equation doesn't work
Next time, I ask you to add more info so people can help you easily and not only with a photo. The problem here is the block f...
Using function simple equation doesn't work
Next time, I ask you to add more info so people can help you easily and not only with a photo. The problem here is the block f...
4년 이하 전 | 0
| 수락됨
답변 있음
How to display multiple images (non indexed images) with different sizes in a row?
I would use moon1, moon2 and moon3 as 3 images that can be different and with different size, but I will obtain them as moon1 =...
How to display multiple images (non indexed images) with different sizes in a row?
I would use moon1, moon2 and moon3 as 3 images that can be different and with different size, but I will obtain them as moon1 =...
4년 이하 전 | 0
답변 있음
Adding Dot For Linspace
You have two possibilities here: In the text file, you replace * by .* and / by ./ in all the document (there is an option in t...
Adding Dot For Linspace
You have two possibilities here: In the text file, you replace * by .* and / by ./ in all the document (there is an option in t...
4년 이하 전 | 0
답변 있음
How can I simplify my expression?
It only needs more time to simplify: I'm doing: simplify(4.0475406620140304336968591117778*Ua + 0.048633477607650367346402317...
How can I simplify my expression?
It only needs more time to simplify: I'm doing: simplify(4.0475406620140304336968591117778*Ua + 0.048633477607650367346402317...
4년 이하 전 | 1
| 수락됨
답변 있음
how to plot decaying exponential
Congratulation! You have your algorithm almost working, but you are using vector when you should be using scalars (As you have y...
how to plot decaying exponential
Congratulation! You have your algorithm almost working, but you are using vector when you should be using scalars (As you have y...
4년 이하 전 | 0
| 수락됨