Question


cvhtml help
Hello. I’m having a little issue with getting my coverage data to display to an html document correctly. We dynamically write an...

12 years ago | 1 answer | 0

1

answer

Question


Set Simulink model simulation stop time from m file
I want to set my models simulation stop time from an m file, but I'm a little confused about how to go about it. When I'd get th...

12 years ago | 2 answers | 3

2

answers

Solved


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

12 years ago

Solved


Justify the character string in center with proportional fonts
how to justify a string of character into center with proportional fonts? Example: x='justify string ' output is ' justif...

12 years ago

Question


MatLab - de-char a char
You read that right, this is probably the oddest question that I ever asked, but I just want to know if I can de-char a char. I ...

12 years ago | 1 answer | 0

1

answer

Question


Reset Simulink model from m file
I need to reset a model within an m-file. I know using : set_param(model, 'SimulationCommand', 'start') set_param(model, 'Simu...

12 years ago | 1 answer | 1

1

answer

Question


engEvalString like function you can use from within a MatLab M file?
I was wondering if there was a wrapper or a function like engEvalString that I could call from inside an M file. Currently we ar...

12 years ago | 1 answer | 0

1

answer

Solved


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

12 years ago

Question


engEvalString source code, Matlab
Hello, I'm looking for the source code for the engEvalString function in matlab. I need to see what this functions doing and pos...

12 years ago | 1 answer | 1

1

answer

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

12 years ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

12 years ago

Solved


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

12 years ago

Question


Setting Simulink model inports using sim() commands
I've been doing a lot of research over the last few hours and I can't seem to figure out how to get and set a value to an Inport...

12 years ago | 1 answer | 1

1

answer

Question


Get and set Simulink model data from Matlab?
I have a simple model with 1 input and output. The input it directly linked to the output. I was wondering if there was any way ...

12 years ago | 1 answer | 1

1

answer

Solved


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

12 years ago

Solved


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

12 years ago

Question


String parsing with a delimiter
Hello, I’m having a little problem parsing a string using a delimiter. It leave the delimiter attached to my string. Here’s my c...

12 years ago | 2 answers | 0

2

answers

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago