Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

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

5 years ago | 0

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

5 years ago | 0

| accepted

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

5 years ago | 1

| accepted

Solved


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

5 years ago

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

5 years ago | 0

| accepted

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 0

| accepted

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 0

Solved


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

5 years ago

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

5 years ago | 0

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

5 years ago | 0

Solved


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

5 years ago

Solved


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

5 years ago

Load more