Philippe Lebel
Followers: 0 Following: 0
Feeds
답변 있음
Match numbers with letters
im late to the show, but here we go anyway... clear clc name = 'david'; a = {'a','b','c','d','e','f','g','h','i','j','k','...
Match numbers with letters
im late to the show, but here we go anyway... clear clc name = 'david'; a = {'a','b','c','d','e','f','g','h','i','j','k','...
3년 초과 전 | 0
답변 있음
How do I add a column vector or matrix to a 6X6 original matrix?
here is an example: clear all zeros_col = zeros(142,1); c11 = (1:142)'; fantastic_matrix = [c11 zeros_col zeros_col zeros_co...
How do I add a column vector or matrix to a 6X6 original matrix?
here is an example: clear all zeros_col = zeros(142,1); c11 = (1:142)'; fantastic_matrix = [c11 zeros_col zeros_col zeros_co...
4년 초과 전 | 0
| 수락됨
답변 있음
the loop does not display results
You are not looping over the values of "i" nor "j" i=1:length(X(:,1)) i = 1 2 3 4 5 6 7 ...
the loop does not display results
You are not looping over the values of "i" nor "j" i=1:length(X(:,1)) i = 1 2 3 4 5 6 7 ...
4년 초과 전 | 0
답변 있음
Better parallelization than parfor?
maybe take a look at arrayfun(). https://www.mathworks.com/help/matlab/ref/arrayfun.html
Better parallelization than parfor?
maybe take a look at arrayfun(). https://www.mathworks.com/help/matlab/ref/arrayfun.html
4년 초과 전 | 0
답변 있음
Elements of table equal to elements of another table
Here you go: I loop over all station names and check where in the data table i find these names. I generate a boolean index in ...
Elements of table equal to elements of another table
Here you go: I loop over all station names and check where in the data table i find these names. I generate a boolean index in ...
4년 초과 전 | 0
답변 있음
How to set the function to be able to use all variables in the script without need to be named in the function def?
i would suggest creating a struct containing the required variables. %my script params.a = 1; params.b = "very string" param...
How to set the function to be able to use all variables in the script without need to be named in the function def?
i would suggest creating a struct containing the required variables. %my script params.a = 1; params.b = "very string" param...
4년 초과 전 | 0
답변 있음
How can i speed up my function?
In order to help you in a significant way, it would be useful to have a sample data set on which we could run the function. On ...
How can i speed up my function?
In order to help you in a significant way, it would be useful to have a sample data set on which we could run the function. On ...
4년 초과 전 | 1
| 수락됨
답변 있음
Differential equation and problem with minmax
This error message tells you that you don't have the required package installed in order to use the minmax() function. Matlab c...
Differential equation and problem with minmax
This error message tells you that you don't have the required package installed in order to use the minmax() function. Matlab c...
4년 초과 전 | 0
답변 있음
Decrease time to upload a figure
In addition to @Looky 's answer, try to remove the set(gca, 'YDir','reverse') from the while loop, I'm pretty sure you only n...
Decrease time to upload a figure
In addition to @Looky 's answer, try to remove the set(gca, 'YDir','reverse') from the while loop, I'm pretty sure you only n...
거의 5년 전 | 1
답변 있음
How to plot curve with one color without precising which color it is?
aloa for i = 1:10 if i == 1 h = plot(1:10,1:2*i:20*i) v = get(h,'Color'); else plot(1:10,1...
How to plot curve with one color without precising which color it is?
aloa for i = 1:10 if i == 1 h = plot(1:10,1:2*i:20*i) v = get(h,'Color'); else plot(1:10,1...
거의 5년 전 | 0
| 수락됨
답변 있음
Deleting plotted image from a figure if conditions are met
If you get the handle of the plot like so: h = plot(1,1,'Xr') you can just delete the handle and the data disapears delete(h)...
Deleting plotted image from a figure if conditions are met
If you get the handle of the plot like so: h = plot(1,1,'Xr') you can just delete the handle and the data disapears delete(h)...
거의 5년 전 | 0
| 수락됨
답변 있음
Does anyone know why it is also taking point 9 as convex hull point eventhough it shouldn't?
By observation, points 8, 9 and 10 are on the same line. You have to add a condition to decimate redundant points. (points that...
Does anyone know why it is also taking point 9 as convex hull point eventhough it shouldn't?
By observation, points 8, 9 and 10 are on the same line. You have to add a condition to decimate redundant points. (points that...
거의 5년 전 | 0
| 수락됨
답변 있음
How to crop detected face part?
RGB Images are 3D matrices with dimenions = (resolution_x, resolution_y, 3) I suppose the bounding box contains the face. Try ...
How to crop detected face part?
RGB Images are 3D matrices with dimenions = (resolution_x, resolution_y, 3) I suppose the bounding box contains the face. Try ...
거의 5년 전 | 1
답변 있음
How to extract matrix from a bigger matrix based on threshold of each column?
here is my try based on what i understood. given a matrix a nx3: a = [5,6,8;1,2,3;2,3,4;3,4,5;4,5,6] a = 5 6 ...
How to extract matrix from a bigger matrix based on threshold of each column?
here is my try based on what i understood. given a matrix a nx3: a = [5,6,8;1,2,3;2,3,4;3,4,5;4,5,6] a = 5 6 ...
거의 5년 전 | 0
| 수락됨
답변 있음
Block diagonal matrix of identity times scalar.
here is my take. a=[1,2]; c = round(a(1):1/(length(b(:,1))-1):a(2)); matrix = diag(c);
Block diagonal matrix of identity times scalar.
here is my take. a=[1,2]; c = round(a(1):1/(length(b(:,1))-1):a(2)); matrix = diag(c);
거의 5년 전 | 0
| 수락됨
답변 있음
add vertical line on a plot for Confidence intervalle.
Have you tried this function? https://www.mathworks.com/help/matlab/ref/errorbar.html
add vertical line on a plot for Confidence intervalle.
Have you tried this function? https://www.mathworks.com/help/matlab/ref/errorbar.html
거의 5년 전 | 0
| 수락됨
답변 있음
Is it possible to perform additional operation on job cancellation?
Checkout this function: https://www.mathworks.com/help/matlab/ref/oncleanup.html
Is it possible to perform additional operation on job cancellation?
Checkout this function: https://www.mathworks.com/help/matlab/ref/oncleanup.html
거의 5년 전 | 1
답변 있음
How can I fill my cell array?
here is my try: U{1} = [1,2]; U{2} = [2,3]; T = [1,2,3]; S = {}; for i = 1:length(T) temp_cell = {}; k=1; f...
How can I fill my cell array?
here is my try: U{1} = [1,2]; U{2} = [2,3]; T = [1,2,3]; S = {}; for i = 1:length(T) temp_cell = {}; k=1; f...
거의 5년 전 | 0
| 수락됨
답변 있음
How do i create a projectile?
as example for a non-accelerating projectile (which is not your case) this could look like time = 0:1:100; % time goes from 0 t...
How do i create a projectile?
as example for a non-accelerating projectile (which is not your case) this could look like time = 0:1:100; % time goes from 0 t...
거의 5년 전 | 0
답변 있음
Creating Sine wave with random values
here is my try: random_phase_offset = rand(1,1)*2*pi; max_amplitude = 20; random_amplitude = rand(1,1)*max_amplitude; t = ...
Creating Sine wave with random values
here is my try: random_phase_offset = rand(1,1)*2*pi; max_amplitude = 20; random_amplitude = rand(1,1)*max_amplitude; t = ...
거의 5년 전 | 1
답변 있음
Saving each data from for loop
If you want to store elements (like strings) that are not the same size you can use cells. A = {'abc', 'defg', 'hijklmnop', 1...
Saving each data from for loop
If you want to store elements (like strings) that are not the same size you can use cells. A = {'abc', 'defg', 'hijklmnop', 1...
거의 5년 전 | 0
답변 있음
basic question about matrices
As i think this is an homework i'd suggest reading: https://www.mathworks.com/help/matlab/ref/ones.html https://www.mathworks....
basic question about matrices
As i think this is an homework i'd suggest reading: https://www.mathworks.com/help/matlab/ref/ones.html https://www.mathworks....
거의 5년 전 | 0
| 수락됨
답변 있음
how can i change an indice in Matrix as vector?
Now i understand. Here is a solution that you can easily expand. clear protein(1).name = 'A'; protain(1).bool_value = [1...
how can i change an indice in Matrix as vector?
Now i understand. Here is a solution that you can easily expand. clear protein(1).name = 'A'; protain(1).bool_value = [1...
거의 5년 전 | 1
답변 있음
how can i change an indice in Matrix as vector?
I am not sure what you are trying to do as a whole, but if you want to quickly find where there are occurences of a certain stri...
how can i change an indice in Matrix as vector?
I am not sure what you are trying to do as a whole, but if you want to quickly find where there are occurences of a certain stri...
거의 5년 전 | 1
답변 있음
problem in optimization by MATLAB using genetic algorithm
Try to see if the problem is not the same as in this question: https://www.mathworks.com/matlabcentral/answers/76730-genetic-al...
problem in optimization by MATLAB using genetic algorithm
Try to see if the problem is not the same as in this question: https://www.mathworks.com/matlabcentral/answers/76730-genetic-al...
거의 5년 전 | 1
답변 있음
Create a string array (MxN) where each element is a repeated character based off a numeric array (MxN)
try this: B = arrayfun(@(x) repmat('#',1,x),A, 'UniformOutput', false) B = '####' [1x0 char] '#' '####...
Create a string array (MxN) where each element is a repeated character based off a numeric array (MxN)
try this: B = arrayfun(@(x) repmat('#',1,x),A, 'UniformOutput', false) B = '####' [1x0 char] '#' '####...
거의 5년 전 | 2
답변 있음
Delete - Variance vs standard deviation when using var() and std() with decimal values from CSV file?
Isn't this normal? As the variance is the square of the standard deviation? 0.1^2 = 0.01
Delete - Variance vs standard deviation when using var() and std() with decimal values from CSV file?
Isn't this normal? As the variance is the square of the standard deviation? 0.1^2 = 0.01
거의 5년 전 | 0
| 수락됨
답변 있음
Unknown operation performed.
This is called logical (or boolean) indexing. https://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab....
Unknown operation performed.
This is called logical (or boolean) indexing. https://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab....
거의 5년 전 | 0
| 수락됨
문제를 풀었습니다
Extract leading non-zero digit
<http://en.wikipedia.org/wiki/Benford%27s_law Benford's Law> states that the distribution of leading digits is not random. This...
거의 5년 전
문제를 풀었습니다
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
거의 5년 전