Community Profile

photo

Steven


2011년부터 활동

통계

All
  • 3 Month Streak
  • Thankful Level 3
  • Knowledgeable Level 1
  • First Answer
  • Solver

배지 보기

Content Feed

보기 기준

질문


Multiobjective genetic algorithm stopping criteria
Hi, I want to optimize an objective function which returns 3 values [y(1), y(2), y(3)] using gamultiobj toolbox. I set up the...

8년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Compare 2 vectors together
Hi, Let's say we have 2 vectors of different lenght, values (but there's not 2 values identical in the same vector) and not s...

11년 초과 전 | 답변 수: 1 | 0

1

답변

질문


how to switch the value of a boolean.
Hi, is there any function to do the following : a = true; b = someFunction(a) ==> b = false b = sumeFuncti...

11년 초과 전 | 답변 수: 2 | 0

2

답변

답변 있음
PI Controller tuning
Any idea folks ?

거의 12년 전 | 0

질문


PI Controller tuning
Hi, I have a second order Transfert Function that I would like to control with a PI. My problem is how to set the proportiona...

거의 12년 전 | 답변 수: 2 | 0

2

답변

질문


manage time computing
Hi, I would like to manage the computing time of a function. For example : function y = myfun(x) y = something_long_t...

12년 초과 전 | 답변 수: 1 | 0

1

답변

질문


how to organize your code in blocks
hi, I wonder if it's possible to regroup (minimize) some parts of your code. Matlab offers this with for loop, but could it be ...

12년 초과 전 | 답변 수: 2 | 0

2

답변

답변 있음
Simulink if/else block
the block I was looking for was index vector

12년 초과 전 | 0

| 수락됨

질문


vectorization
hi, is there a quick way to change the values of the diagonal of a matrix, instead of for i = 1:length(A) A(i,i) = 0;...

12년 초과 전 | 답변 수: 2 | 1

2

답변

질문


How to pick a value according to its probability
Hi, Let's say P = [0.1 0.3 0.4 0.2] X = [1 2 5 9] where P(n) is the probability to select the X(n) element. I wish...

12년 초과 전 | 답변 수: 4 | 1

4

답변

질문


Easy question with probability
Hi, Let's say P = [0.1 0.3 0.4 0.2] X = [1 2 3 4] where P(n) is the probability to select the X(n) element. I wish...

12년 초과 전 | 답변 수: 2 | 0

2

답변

답변 있음
Polynomial
f = @(x,y,z)(x+y+z); or f = inline('x+y+z', 'x', 'y', 'z'); or function f = myfun(x,y,z) f = x+y+z; return g...

12년 초과 전 | 1

답변 있음
Heat transfer
Hi, You should take a look at MLE+. It's a toolbox wich make the connection between Matlab and EnergyPlus. Obviously, you need ...

12년 초과 전 | 0

| 수락됨

질문


Simulink if/else block
Hi, I'm looking for the right way to set a conditional statement in Simulink. That's the pseudo-code I wish to have: if ...

12년 초과 전 | 답변 수: 2 | 0

2

답변

답변 있음
TeX (LaTeX math mode) symbols in legends and labels in MATLAB figures
Try with Latex interpreter, something like title(['$ latex $'],'interpreter','latex')

12년 초과 전 | 0

답변 있음
for loop
value = 1:10; skip = [4 6 9]; value(skip) = []; for i = value ... end

12년 초과 전 | 1

답변 있음
for loop
one way could be to specify manually the values: for i = [1 2 3 5 7 8 10] ... end

12년 초과 전 | 1

질문


plot different color
Hi, Let's say I have x = 1:100; y = sin(x); I wish to plot it in blue but if y is superior at 0.5, I want that the plot chang...

12년 초과 전 | 답변 수: 2 | 1

2

답변

질문


simple operations
Hi, I'm seeking the way to erase repeated value into vector, like this: a = [0 0 1 2 2 2 7]; b = something(a); b = [0 1 2...

12년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
close terminal window
I got it, I thought matlab could do it by itself, but instead I modify the batch file of the program.

12년 초과 전 | 0

| 수락됨

답변 있음
close terminal window
Yes, if I type exit in the terminal, it close the windows.

12년 초과 전 | 0

질문


close terminal window
Hi, I make a program wich open the terminal window(C:\WINDOWS\system32\cmd.exe) at each time it's fired. I use it in a loop, so...

12년 초과 전 | 답변 수: 4 | 0

4

답변

질문


Vector operations
I'm looking for something that can repeat a vector without. For exemple, here a is repeated 4 times : a = [1,2,5]; b = cell...

12년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
Dumb mistakes we make with MATLAB.
I often use != instead of the unusual ~=

12년 초과 전 | 2

답변 있음
Unable to get all the points graphed.
you miss an hold on: plot(n1,beta); hold on; will be better.

12년 초과 전 | 0

답변 있음
ploting x,y coordinates in time
x = [X1, X2, ...]; y = [Y1, Y2, ...]; plot(x,y); ???

12년 초과 전 | 0

답변 있음
Good programming practice...
However, the difference seems to be indistinguishable considering a certain precision whatever the number of repetitions. t...

12년 초과 전 | 0

답변 있음
Need help creating a loop
clear all; clc; eps = 50; % precision piOn4 = 1; for i = 1:eps piOn4 = piOn4 + (-1)^(i)*(1/(2*i+1)) end ...

12년 초과 전 | 2

질문


Cell conversion to double
Greetings, Let's say a is a 11x1 cell like this a = '0.000000' '1.000000' '2.000000' '3.000000' ...

12년 초과 전 | 답변 수: 2 | 6

2

답변

답변 있음
How to split data strem in Matlabn Simulink?
Mux/Demux blocks ???

12년 초과 전 | 0

더 보기