Question

Chinese characters in html not recognized

Hi there! I need to read and parse some Chinese characters in some html files and save later into an excel worksheet. An examp...

presque 2 ans ago | 1 answer | 0

Question

Display signals from the activated variant subsystem in a sleek manner

Hi there! I am using a variant subsystem to run simulations controlled by conditions. I wonder if there is a sleek way, preferab...

plus de 2 ans ago | 1 answer | 0

Question

How to set initial values for the start of a feedback loop in Simulink

Hi, there! I am trying to incorporate a thermal model of electric motor into the full vehicle model. The thermal model takes los...

plus de 2 ans ago | 1 answer | 0

Question

How to assign a signal to the block parameter of simscape electric block(resistor)?

Hi, there! I would like to pass the output signal of a subsystem as the block parameter to the resistor block of simscape electr...

plus de 2 ans ago | 1 answer | 0

Question

Surface fit to determine the coefficients of a hypothetical equation

Dear all! As is mentioned in the title, I have to perform a surface fit to figure out coefficients of an analytical model. The e...

plus de 2 ans ago | 1 answer | 0

Question

What is the possibly easiest way to convert back and forth between a struct scalar and a struct array?

Suppose there is a struct scalar, each field of which contains a numeric array of the same size. I would like to convert it into...

plus de 2 ans ago | 1 answer | 0

Question

How to remove cells that look seemingly like newline character from cell array?

Dear all, I am involved in a task of analyzing and processing txt file. After converting the txt file line by line into cells, I...

plus de 2 ans ago | 2 answers | 0

Answered

How to take first Character if name starts with specified string

Hi,using regexp function with lookaround assertions is a feasible walkaround for loops. Funnily enough, there is a glitch in th...

How to take first Character if name starts with specified string

Hi,using regexp function with lookaround assertions is a feasible walkaround for loops. Funnily enough, there is a glitch in th...

plus de 2 ans ago | 0

Solved

Make a checkerboard matrix

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

presque 3 ans ago

Solved

Produce a sine wave

Produce a sine wave with amplitude 3: <<http://blogs.mathworks.com/images/seth/cody/sine-eqn.png>>

presque 3 ans ago

Solved

Add a block to a model

Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-block-eqn.png>> In this case, the slope of...

presque 3 ans ago

Solved

Connect blocks in a model

Connect the blocks in the model to produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/connect-blocks...

presque 3 ans ago

Solved

Triangle sequence

A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

presque 3 ans ago

Solved

Find a Pythagorean triple

Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

presque 3 ans ago

Solved

Side of a rhombus

If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<http://upload.wikimedia.org/wikipe...

presque 3 ans ago

Solved

Area of an Isoceles Triangle

An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<http://upload...

presque 3 ans ago

Solved

Dimensions of a rectangle

The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

presque 3 ans ago

Solved

Side of an equilateral triangle

If an equilateral triangle has area A, then what is the length of each of its sides, x? <<http://upload.wikimedia.org/wikipe...

presque 3 ans ago

Solved

Area of an equilateral triangle

Calculate the area of an equilateral triangle of side x. <<http://upload.wikimedia.org/wikipedia/commons/e/e0/Equilateral-tr...

presque 3 ans ago

Solved

Length of a short side

Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

presque 3 ans ago

Solved

Is this triangle right-angled?

Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

presque 3 ans ago

Solved

Is this triangle right-angled?

Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

presque 3 ans ago

Solved

Length of the hypotenuse

Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

presque 3 ans ago

Solved

Create an index-powered vector

Given a input vector x, return y as index-powered vector as shown below. Example x = [2 3 6 9] then y should be [...

presque 3 ans ago

Solved

Create an n-by-n null matrix and fill with ones certain positions

The positions will be indicated by a z-by-2 matrix. Each row in this z-by-2 matrix will have the row and column in which a 1 has...

presque 3 ans ago

Solved

Finding peaks

Find the peak values in the signal. The peak value is defined as the local maxima. For example, x= [1 12 3 2 7 0 3 1 19 7]; ...

presque 3 ans ago

Solved

Find nth maximum

Find nth maximum in a vector of integer numbers. Return NaN if no such number exists. x = [2 6 4 9 -10 3 1 5 -10]; So ...

presque 3 ans ago

Solved

Change the sign of even index entries of the reversed vector

change the signs of the even index entries of the reversed vector example 1 vec = [4 -1 -2 9] ans = [9 2 -1 -4] example2...

presque 3 ans ago

Solved

Create a vector whose elements depend on the previous element

The idea is to create a vector A whose elements depend on the previous element : *A(i+1) = 2*A(i)+1* *2 Inputs*: - A : The...

presque 3 ans ago

Solved

"Low : High - Low : High - Turn around " -- Create a subindices vector

Let two vectors *lo* and *hi* be given. The job is to create a index vector like so idx = [lo(1):hi(1) lo(2):hi(2) ...]...

presque 3 ans ago