Community Profile

photo

patrick1704


TU München

Last seen: 7 months ago Active since 2014

Statistics

All
  • Knowledgeable Level 2
  • First Answer
  • Solver

View badges

Content Feed

View by

Answered
Matlab function with initial long execution time
Matlab uses a just-in-time compiler that compiles the code at first execution and basically creates the executable code. This is...

1 year ago | 0

| accepted

Answered
How to use Birnbaum-Saunders dist in SImulink
Hi there, if you are not required to fulfill special coding guidelines, the Matlab function block is always an option, with whi...

1 year ago | 0

Answered
Optimization Problem for ecms fcmincon
Hi there, the active-set algorithm you specified in your script is discussed in this Matlab article: Constrained Nonlinear Opti...

1 year ago | 1

| accepted

Answered
Find minimum in matrice
Hi, If you only care about the value and not the index, you could do something like this: min(R1_matrix(R1_matrix ~= 0)) If y...

1 year ago | 1

| accepted

Answered
List available java packages
Hi there, you can get a list of jar-files known to Matlab by executing: Return Java class path or specify dynamic path - MATLAB...

1 year ago | 0

Answered
Create a matrix that changes size according to a variable N
Well, one option on how to e.g. create your is to do something like this: Atilde = arrayfun(@(x) A.^x, 0:1:n, 'UniformOutput',...

1 year ago | 0

| accepted

Solved


Fix the last element of a cell array
Note: this is lifted directly from <http://www.mathworks.com/matlabcentral/answers/82825-puzzler-for-a-monday Puzzler for a Mond...

1 year ago

Solved


Natural numbers in string form
Create a cell array of strings containing the first n natural numbers. _Slightly_ harder than it seems like it should be. Ex...

1 year ago

Solved


Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

1 year ago

Solved


Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

1 year ago

Solved


Check that number is whole number
Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. http://en.wikipedia.org/wiki/Whole_numb...

1 year ago

Solved


MATLAB Basic: rounding IV
Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

1 year ago

Answered
I want to plot between "W" and "lambda" for different values of "psi" but don't know what's going wrong.
Well, what's going wrong in this context is that your "W" calls "P", which wants to evaluate from [0,x] with x being defined as ...

1 year ago | 0

| accepted

Solved


MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

1 year ago

Solved


MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

1 year ago

Solved


MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

1 year ago

Answered
If matlab coder fails can we still do it ourselves?
Not sure if I completly understand your question, but you can naturally write a C/C++ function and code it to mex even without t...

1 year ago | 0

| accepted

Solved


Replace NaNs with the number that appears to its left in the row.
Replace NaNs with the number that appears to its left in the row. If there are more than one consecutive NaNs, they should all ...

1 year ago

Answered
Create cell array of handle functions, which have been created from 2x1 double arrays
Hi there, I am not sure if I understand the problem correctly because once you evaluate the function handle Matlab, you will ge...

1 year ago | 1

Answered
Sensitivity analysis in simulink
Well, sensitivities are in the end gradients and the easiest way to get them is by means of finite differences. Because your mod...

1 year ago | 0

Answered
How to update lookup table during simulation? Simulink
Hi there, I assume that you want to update the breakpoint data, right? Simulink generally supports dynamic lookup tables, i.e. ...

1 year ago | 0

| accepted

Answered
livescript and m file
Well, they are in the end different file types so it's not like you can decide directly on how to execute them if that is what y...

1 year ago | 0

Answered
how to extract all rows with samen "Key" from matrix
Your SOURCE_KEY column is a categorical. Thus, you just have to do something like this: reducedData = Electricity(Electricity.S...

1 year ago | 1

Answered
Seeking documentation of the Aerodynamic Forces and Moments Block
Hi there, aerodynamic forces/moments are normally described as dimensionless coefficients because there are some similarity rel...

2 years ago | 0

Answered
How to stop ODE fuction in a certain value
From my perspective the already given answer only solves the problem of stopping the simulation. However, it does not restart it...

2 years ago | 0

| accepted

Solved


speech compression
sir how to reconstruct the original signal from compressed signal by using speech file please give me some suggestions

9 years ago

Solved


Replace every 3rd element in a vector with 4
x is a vector of undetermined length You are to replace every 3rd element with the number 4, example: x = [11 23 34 43 2 3...

9 years ago

Solved


Find the Sum of r and t.
Find the sum r^2 + t^2

9 years ago

Solved


Skip by a multiple
Given an integer create an array of its multiples. Array must have a length of 15

9 years ago

Solved


Where is she?
Given the numbers 12, 3 , 6 ,9 Tell where the girl is located. I.E: Look to your 3 oclock = look right Ex. x = 3 fp...

9 years ago

Load more