Pregunta


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

más de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 13 años hace | 2 respuestas | 3

2

respuestas

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace

Pregunta


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

más de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 13 años hace | 1 respuesta | 1

1

respuesta

Pregunta


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

más de 13 años hace | 1 respuesta | 0

1

respuesta

Resuelto


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

más de 13 años hace

Pregunta


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

más de 13 años hace | 1 respuesta | 1

1

respuesta

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace

Pregunta


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

más de 13 años hace | 1 respuesta | 1

1

respuesta

Pregunta


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

más de 13 años hace | 1 respuesta | 1

1

respuesta

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace

Pregunta


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

más de 13 años hace | 2 respuestas | 0

2

respuestas

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace

Resuelto


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

más de 13 años hace