Community Profile

photo

William Alberg


Last seen: 1일 전
23 2020 이후 총 참여 횟수

William Alberg's 배지

  • Solver
  • Knowledgeable Level 2
  • First Answer
  • Thankful Level 1

세부 정보 보기...

참여 게시물
보기 기준

답변 있음
Hello, I'd like to define this function. Any help please?
Im not entirely sure if this is what you are looking for. syms x u = @(x) func(x) function y = func(x) if 1 <=...

약 1달 전 | 0

답변 있음
For loop problem for automatisation
My error code is: Index in position 2 exceeds array bounds (must not exceed 5). Error in main (line 17) y = matriceVal...

약 1달 전 | 1

| 수락됨

답변 있음
plot all the values of a for loop
As far as i can see, you need to put the plot command inside the loop. I have attached a modified version

약 1달 전 | 0

| 수락됨

답변 있음
how to get this in smulink
There is a block called "Magnitude Squared", that does exacly that.

약 1달 전 | 0

질문


Transform polynomium equation into multiple coefficient equations
Hello I want to match coefficients from 2 polynomiums: syms x syms a [3,1] syms alpha beta gamma eq = (1-alpha)*x^2 + (1...

약 1달 전 | 답변 수: 0 | 0

0

답변

답변 있음
How to count the number of "" true "" and ""false"" in matrix
You can do something like this: a = [ true true false true true true true true false false true false false true true ] ...

약 1달 전 | 1

| 수락됨

답변 있음
How can i vectorize this loop?
@Rik told me to move my comment to the answer section, i hope he ment copy-paste :) I don't know if you can vectorize that, sin...

약 1달 전 | 0

질문


Simulink: Product block forces wrong dimension size
Hello all I have a bit of a problem. My simulink model has an dimension error, but i cant understand why. I need to perform ...

약 1달 전 | 답변 수: 1 | 0

1

답변

답변 있음
linear equation without coefficients
I think the polyfit command is what you are looking for. It should work like this k = polyfit(x,y,1) a = k(1) b = k(2)

약 2달 전 | 1

답변 있음
Create Matrix using only zeros and ones
This should do it for the first matrix A = zeros(4,4); A(:,1) = 1; % set column 1 to 1 A(:,3) = 1; % set column 3 to 1 disp(...

약 2달 전 | 0

답변 있음
How to put rows of a matrix in another matrix column?
data = rand(243938,1); % generate test data n = 2; % Columns in Y Y = nan(100,n); % initiate Y % method 1, using forloo...

약 2달 전 | 0

| 수락됨

해결됨


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

약 2달 전

해결됨


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

약 2달 전

해결됨


Add two numbers
Given a and b, return the sum a+b in c.

약 2달 전

해결됨


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

약 2달 전

해결됨


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

약 2달 전

답변 있음
STORAGE OF SELECTIVE VALUES OF SOME CELLS INTO A SINGLE MATRIX FROM TWO DIFFERENT MATRICES. Whats wrong with this?
Okay, you have made 2 errors: A(:,1) returns: [1;6;1;8;5]. I think you want it to return [1, 2, 3, 4, 5], which is A(1,:). "A...

약 2달 전 | 0

| 수락됨

답변 있음
Specifying a range in a double
I think, that you want to do this: MAX = 110; MIN = 90; id = find( (MIN <= Values) & (Values <= MAX) ) Values = mean(Values(...

약 2달 전 | 0

| 수락됨

답변 있음
Help with a loop
S = [12 4 6 4;16 12 2 3;0 4 10 12;4 12 21 3]; CLN = 50*ones(4); for i = 1:4 S = S - 2; CNL_new = CLN; % If S is bel...

약 2달 전 | 0

| 수락됨

답변 있음
Transforming from Maclaurin to Taylor
If i understand correctly, your code looks something like this: syms x f(x) = x^3 + x^2 + x +1 f(x-1) f(x-2) And you want...

약 2달 전 | 0

| 수락됨

답변 있음
differential equation solution for control system
The transfer function can be inserted into matlab the following way: % make transferfunction b = 1; a = [1 5 6 10]; G = tf(b...

약 2달 전 | 1

질문


Define alternative latex-output for symbolic
Hello I want to change the output that comes from the latex-command syms g(f) dx(t) d eq = dx(t) == g(t^2+t) + d; % example ...

약 2달 전 | 답변 수: 1 | 0

1

답변

질문


Apply diff to function handle
Hello! I have a string input that i transform into a symbolic equation. I need to translate "D(___)" into differentiation, but ...

약 2달 전 | 답변 수: 2 | 0

2

답변