Réponse apportée
A = 'hello' B = [0;0;0;0] How do I rename variable B with hello?
Here it is A = 'hello'; B = [0;0;0;0]; v = genvarname(A); eval([v,'=B']);

plus de 9 ans il y a | 0

Réponse apportée
Averaging the 3D-array
You may want to histogram the 3D array by 3D histogram. There many functions in Matlab central, just search for "N dimensional h...

plus de 9 ans il y a | 4

| A accepté

A résolu


A shooting competition
In a shooting competition, the target is a square of side L containing a circle of radius R<=L/2. A player scores one point if h...

plus de 9 ans il y a

Problème


A shooting competition
In a shooting competition, the target is a square of side L containing a circle of radius R<=L/2. A player scores one point if h...

plus de 9 ans il y a | 2 | 74 solveurs

A résolu


Divisible by 2
This is the first problem in a set of "divisible by x" problems. You will be provided a number as a string and the function you ...

plus de 9 ans il y a

A résolu


UICBioE240 problem 1.8
Given a list of grades in a class, write a script that gives the 2nd highest grade in the class and the average for the class. ...

plus de 9 ans il y a

A résolu


Can you reshape the matrix?
Given a matrix A, is it possible to reshape it into another matrix with the given number of rows?

plus de 9 ans il y a

A résolu


Tridiagonal
Return an n-by-n matrix that has a, b, c as the subdiagonal, main diagonal, and superdiagonal entries in the matrix. Example ...

plus de 9 ans il y a

A résolu


Calculate the peak value of square wave
Given the peak value of sine wave, calculate corresponding peak value of square wave, if both have same RMS voltage.

plus de 9 ans il y a

A résolu


exactly?
given two strings of numeric expressions such as '1-7/14' and '11/22+0.2^2', return 1 if they are numerically exactly equal othe...

plus de 9 ans il y a

A résolu


union without repitition
Let a = [9 9 9 9 9 9 8 8 8 8 7 7 7 6 6 6 5 5 4 2 1] b = [1 1 1 3 3 3 3 3 4 4 4 4 4 10 10 10] Output should be [9 8...

plus de 9 ans il y a

A résolu


Feeling lucky?
Guess which number Cody is thinking (1 to 10)? (This is a game of luck more than skill. Good luck!)

plus de 9 ans il y a

A résolu


Calculate value of capacitor
Given the value of resistance and time at which capacitor charges to it's 99%. calculate the value of capacitor

plus de 9 ans il y a

A résolu


Apply a function array to an array of numbers
It is required to apply a cell array of functions to a numerical array, where the functions accept only scalar inputs. Exampl...

plus de 9 ans il y a

A résolu


Another colon problem
This is simple problem based on problems 555, 801, 1118, etc. Create an index vector from two input vectors. Example: ...

plus de 9 ans il y a

A résolu


Local Minima
Given a vector of data x, find the values of local minimum that is smaller than its neighbor elements. For example, if x =...

plus de 9 ans il y a

A résolu


multiple of nine?
Given a positive number n, return true if n is a multiple of 9 and false if not. Do not make the division and do not use functio...

plus de 9 ans il y a

A résolu


Replace secondary diagonal elements of a square array
Replace all the secondary diagonal elements of the square array A with the number n Example: A = [1 2 3 4 5 6 ...

plus de 9 ans il y a

A résolu


Try and Catch Simple Example
Try and Catch Simple Example <http://in.mathworks.com/help/matlab/ref/try.html Example> Vector x=[1 4 6 8 10]; Create...

plus de 9 ans il y a

A résolu


Generate binary combinations for a given number of bit(s)
Generate the binary combination as in the example below. Example: If you are given: bin_comb(2) The answer will be: ...

plus de 9 ans il y a

A résolu


prime test 2
enter the only non prime,non composite number

plus de 9 ans il y a

A résolu


metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

plus de 9 ans il y a

A résolu


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

plus de 9 ans il y a

A résolu


Test of Quiz
Answer the questions and write in vector. Only one answer is correct. The founder of fuzzy logic is 1a) D. Golberg 1b)...

plus de 9 ans il y a

A résolu


Celsius to Kelvin
Degrees Celsius = Kelvin - 273.15

plus de 9 ans il y a

A résolu


Hydrogens in a Saturated Hydrocarbon
Given (c) carbon atoms in a saturated hydrocarbon molecule (all single bonds), how many hydrogen atoms (h) are in the molecule?

plus de 9 ans il y a

A résolu


Golden ratio
Calculate the golden ratio. Hint: phi^2 = phi + 1.

plus de 9 ans il y a

A résolu


Reshape a Vector
Write a function that accept three inputs. The first one is a row vector S. The second and third arguments are m and n which de...

plus de 9 ans il y a

Réponse apportée
Why 2D sinusoidal grating Phase spectrum looks horizontal line?
Basically Matlab function FFT2 computes the discrete 1D FFT on image columns first, and then again it applies 1D FFT to the rows...

plus de 9 ans il y a | 4

| A accepté

Réponse apportée
separate colors of image
Here is an example with a default matlab image to extract color bands: IMG=imread('peppers.png'); RED=IMG(:,:,1); GRE...

plus de 9 ans il y a | 4

Charger plus