Gelöst


5th Time's a Charm
Write a function that will return the input value. However, your function must fail the first four times, only functioning prope...

mehr als ein Jahr vor

Gelöst


Remove the polynomials that have positive real elements of their roots.
The characteristic equation for a dynamic system is a polynomial whose roots indicate its behavior. If any of the roots of the p...

mehr als ein Jahr vor

Gelöst


Prime factor digits
Consider the following number system. Calculate the prime factorization for each number n, then represent the prime factors in a...

mehr als ein Jahr vor

Gelöst


Find relatively common elements in matrix rows
You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...

mehr als ein Jahr vor

Gelöst


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the numbers. Otherwise return false. Example...

mehr als ein Jahr vor

Gelöst


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

mehr als ein Jahr vor

Gelöst


Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end),...

mehr als ein Jahr vor

Gesendet


global_fit
Find the global optimum for a fit optimization problem fast.

mehr als ein Jahr vor | 1 Download |

Thumbnail

Beantwortet
Non-uniform Discrete Data Sample Filtering
I would reccomend you using the live script task "Smooth Data". There you can graphically try out different filter methods and a...

mehr als ein Jahr vor | 0

Gelöst


Birthday cake
It's Cody's 5th birthday, and you've been tasked with putting the candles on the cake. Your goal is to maximize the distance bet...

fast 2 Jahre vor

Frage


How can I add an edge to my model?
I started using the Partial Differential Equation Toolbox and after generating a basic geometry, I wanted to add edges to it. Ho...

etwa 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How do you name single output functions?
The matlab style book reccomends to name single output functions like their output, which is consistent with the MALTAB function...

etwa 3 Jahre vor | 3 Antworten | 0

3

Antworten

Beantwortet
Reformat numbers in table
% leading zero in the format specifier specifies leading zeros in your string t.Var1 = "Subject" + string(num2str(t.Var1,'%03i'...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Error in the plot function/low resolution
Hi, it is hard to find (and fully understand) your problem without having your code. If I understand your question right, you...

etwa 3 Jahre vor | 0

Frage


How do you name time series / table variables?
Hello community, when having a dataset with much variables in the form of a timetable, I often name the table with its variab...

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
[Editable uitable] Calculate result based on user input
Right click on your table, --> Callbacks --> Add CellEditCallback This will create a subsection in your app code. Whenever a ...

mehr als 3 Jahre vor | 0

Beantwortet
Pop-Up Menu MultiSelect?
There are multiple ways your problem can be solved: Add a menu bar to your app. This will be a menu, that can expand from the t...

mehr als 3 Jahre vor | 0

Beantwortet
Maximization with an objective variable in the function
It seems to me, that fmincon can only find local minima. It also has much math I dont understand, an easier (to understand) func...

mehr als 3 Jahre vor | 0

Beantwortet
Interactive tutor using app designer
What you will need for this is evil "eval". Eval can calculate whatever the student has given you. You can catch and return e...

mehr als 3 Jahre vor | 0

Beantwortet
How to read a numerical value from a static text box?
Did you try str2double instead of num2str? ;)

mehr als 3 Jahre vor | 1

Beantwortet
Supress image showing until called on Live Script
A quite simple workaround would be, if you save the figure you want to be invisible, then close it and open it again from a file...

mehr als 3 Jahre vor | 0

Gelöst


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

mehr als 3 Jahre vor

Frage


How to Define a Symbolic Continued Fraction
Hello, I want to create and simplify a symbolic fraction, but dont now how. My fraction has the following form: I want to rep...

mehr als 3 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


How can I use function handles in Simulink?
Hello, i found similar questions, but none did account for my problem in Simulink. I have a function handle in my model work...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Gelöst


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:...

mehr als 3 Jahre vor

Beantwortet
Smoothed daily count of each column by applying a moving average filter of length 7
To use a moving average filter in Matlab, use: M = movmean(A,k)

fast 4 Jahre vor | 0

Beantwortet
Why do I get this error? "indices must either be real positive integers or logicals."
You could use N(g) to create a symbolic function with the symbolic variable g. Since g is not a symbolic variable but a vector, ...

fast 4 Jahre vor | 0

Frage


Position or Coordinates of Labels
Hi, I want to know the Position of the xlabel (ylabel) of my plot, to insert an arrow at this position. However, when I call th...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
How to solve a cosine function raised to the 3rd power
Hi, you probably forgot to define theta as a symbolic variable. Use "sym" to do that. syms theta eqn = solve(1.5936==(2-3*cos(...

fast 4 Jahre vor | 1

Frage


Strange behaviour of simplify
Hello, when solving a math Problem today i noticed a strange behaviour of simplify and I cannot explain myself what I did wrong....

fast 4 Jahre vor | 2 Antworten | 0

2

Antworten