Resuelto


03 - Matrix Variables 4
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3d.png>> A 3x4 NaN (Not a Number) matrix (Hint: use ...

alrededor de 5 años hace

Resuelto


03 - Matrix Variables 3
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3c.png>> A 10x10 matrix where the numbers from 1 to 100 ...

alrededor de 5 años hace

Resuelto


Back to basics 1 - Saving
Covering some basic topics I haven't seen elsewhere on Cody. Given an input variable 'x', save it to disk in a file named 'co...

alrededor de 5 años hace

Resuelto


The Goldbach Conjecture, Part 2
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

alrededor de 5 años hace

Resuelto


The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

alrededor de 5 años hace

Resuelto


How to subtract?
*&plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn* * Imagine you need to subtract one...

alrededor de 5 años hace

Resuelto


Remove all the consonants
Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

alrededor de 5 años hace

Respondida
Use Matlab/Scilab to calculate moments and centers of mass, moment of inertia, probability
Your question is not quite clear. You may need to start studying these sources how to employ MATLAB for such calcs. Here is a ...

alrededor de 5 años hace | 0

Respondida
Model a CVT from fundamental equations using standard simulink blocks
You know that SImulink library has several lookup table blocks. Here is the nice tutorial how to employ and set up look up tabl...

alrededor de 5 años hace | 0

| aceptada

Respondida
Why i am getting scope warning while simulation?
Since you have considerably large simulation data, it is better not to open a scope twhile simlation is running. Instead, you ca...

alrededor de 5 años hace | 1

| aceptada

Resuelto


Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

alrededor de 5 años hace

Respondida
how to calculate mean square error?
Here is the sample code how to compute MSE from the histogram fit model: x = .... % Your da...

alrededor de 5 años hace | 0

| aceptada

Respondida
linear regression , Grid search
There are a few errs that need to be fixed, see the given comments: function Gred_Search5() clear clc close all x=[1 ;2 ;...

alrededor de 5 años hace | 0

Respondida
I can't detect error in formula
Without the knowledge of your variables and their size, one point is clear that is an elementwise operation is needed for * and ...

alrededor de 5 años hace | 0

Respondida
How to change the previous result ?
There was an err inside the loop. Here is the corrected complete and simplified code: S = 0; U = 5; for n=2:10 b = sqrt(n)...

alrededor de 5 años hace | 0

| aceptada

Resuelto


Square a Number
Given an input x, return y, which is equal to the square of x.

alrededor de 5 años hace

Resuelto


Back to basics 10 - Max Float
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive floating-point number MATLAB can han...

alrededor de 5 años hace

Resuelto


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

alrededor de 5 años hace

Resuelto


length of a vector
Find twice the length of a given vector.

alrededor de 5 años hace

Resuelto


Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

alrededor de 5 años hace

Respondida
convert data from two 3D arrays into three 2D arrays
It is quite simple: var1Array = A(:,:,1); var2Array = A(:,:,2); var3Array=A(:,:,3); % OR combining A and B into one array var...

alrededor de 5 años hace | 0

Respondida
SIMPLE MATH ERROR CALCULATION
MATLAB's accuracy is not absolute and thus, such offsets will be present. You can select how many decimal digits you need using ...

alrededor de 5 años hace | 0

Respondida
Mechanical switch
In SImulink Library -> Signal Routing - > [Switch], [Manual Switch], [Index Vector], [Multi-port Switch]...

alrededor de 5 años hace | 0

Respondida
Which simulink blocks can I use to create this function ?????
The question is now well posed and there are a few essential points left open. In general, based on the formulation of another...

alrededor de 5 años hace | 0

Respondida
Relay question
Magneto-rheological damper model that generates the relay loop w.r.t. damping parameters. https://www.mathworks.com/help/ident...

alrededor de 5 años hace | 0

Resuelto


Find last non-zero in a given dimension
You are given a logical matrix *BW* _of any dimension_, and a dimension *dim*. You need to find the locations of the last non-ze...

alrededor de 5 años hace

Respondida
how to show this
It is quite simple and straightforward: G = tf(1, [1 4 3 0 1 3 0])

alrededor de 5 años hace | 0

Respondida
How can i implement Central difference method to solve ODE
Here is a good discussion and code how to implement the central difference method in solving ODEs: https://www.mathworks.com/ma...

alrededor de 5 años hace | 0

Resuelto


Find longest run
Write a function longest_run that takes as input an array of 0's and 1's and outputs the length and index of the longest consecu...

alrededor de 5 años hace

Resuelto


Assignment Problem
Given a matrix where row i corresponds to person i, and column j corresponds to task j and cell (i,j) corresponds to the time ta...

alrededor de 5 años hace

Cargar más