Solved

Integer or Float?

Test an input to see whether it is an integer or a floating point number. If it is an integer return 1 for 'true'. Otherwise ret...

oltre 5 anni ago

Solved

Remainder

Make 'y' equal to the remainder of 27 divided by 5. When x=27 and t=5

oltre 5 anni ago

Solved

Complex number

For complex number c=a+bi, write code that will add a and b together.

oltre 5 anni ago

Solved

Find Out sum of principal diagonal element of given matrix

Find out sum of principal diagonal element of given matrix If A=[1 0 0; 0 1 0;0 0 1], then answer must be 3.

oltre 5 anni ago

Solved

Append two matrix as shown below example

Append two matrix as shown below example A=[1 2; 3 4] and B=[5 6;7 8] Answer must be 1 2 5 6 3...

oltre 5 anni ago

Solved

Find out value of sine given by degree.

Find out value of sine given by degree. If theta=30, it's value must be 0.5.

oltre 5 anni ago

Solved

Find out total non zero element of matrix

Find out Non zero element of matrix A=magic(5) 17 24 1 8 15 23 5 7 14 16 4 6...

oltre 5 anni ago

Solved

Replace odd number in given matrix by zero

Replace the odd numbers in a given matrix with zero. Example A = [ 17 24 1 8 15 23 5 7 ...

oltre 5 anni ago

Solved

Wind Chill Computation

On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...

oltre 5 anni ago

Solved

Quote Doubler

Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...

oltre 5 anni ago

Solved

Binary numbers

Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

oltre 5 anni ago

Solved

Fahrenheit to Celsius using multiple statements

Given a Fahrenheit value F, convert to a Celsius value C. While the equation is C = 5/9 * (F - 32), as an exercise use two state...

oltre 5 anni ago

Solved

Cell joiner

You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

oltre 5 anni 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 ...

oltre 5 anni ago

Solved

Delete 2nd and 5th column of Given 6*6 matrix

Delete the 2nd and 5th columns of the given 6*6 matrix. Example Suppose A = magic(6) 35 1 6 26 19 ...

oltre 5 anni ago

Question

what cause this error to xlsread randomnly?

I have a script where i load a excel file.Sometimes the file is not loaded and the following error is displayed: Error usin...

oltre 5 anni ago | 3 answers | 1

Question

how to find area enclosed by points (x,y) where the shape is curved?

I have the following shape where i know the x and y.How can i find the area enclosed to this shape? <</matlabcentral/answ...

oltre 5 anni ago | 1 answer | 1

Question

how to interpolate/replace these values?

I got the following results from a calculation: <</matlabcentral/answers/uploaded_files/18956/export_fig_out.png>> It ca...

oltre 5 anni ago | 1 answer | 0

Question

How can it be possible the following calculation have negative values?

I am using the followind code : Output = bsxfun(@rdivide,(x*y'),z).*sqrt(k+n); size(x) = 1x1 size(y) = 1x50 size(z...

oltre 5 anni ago | 0 answers | 0

Question

How to value value NaN in a 2d matrix?

I have a 2d matrix with some NaN. how to value them? I give some figure to be more understandable: <</matlabcentral/answe...

oltre 5 anni ago | 2 answers | 0

Question

how to value nan number in a vector? and how to do the same calc in a 2d matrix?

--I have a vactor where some values are NaN.The results are on the following plot(in the red box the nan) : <</matlabcent...

oltre 5 anni ago | 2 answers | 0

Question

how to search values?

I was wondering if there is a way to find if any value of all my variables have a specific value e.g. NaN or Inf.Using OOP techn...

oltre 5 anni ago | 2 answers | 0

Question

how to find the local Slope of a curve in each point

how to calculate the local slope degree of this curve in its point having the x and y values of the curve: <</matlabcentra...

oltre 5 anni ago | 1 answer | 0

Question

Best method to be implimented

Having a couple of equations inside a function. This function has an output.This output is again an input in the same equation u...

oltre 5 anni ago | 1 answer | 0

Question

Efficient way to impliment this expression

I got the following equation : <</matlabcentral/answers/uploaded_files/18120/equation.png>> Let me assume the follow...

oltre 5 anni ago | 0 answers | 0

Question

adding matrices with different dimensions

I got an equation similar to this : X-sin(thita). size(X) = 1x50 size(thita) = 1x180. My output should be a matrix of 50x1...

oltre 5 anni ago | 2 answers | 0

Question

how to optimize a diag matrix with sparse

How to optimize this diagonal matrix using sparse : a=diag([-ones(9,1)],-1)+diag([ones(10,1)])+diag([0 ones(1,4) 0],4)

circa 6 anni ago | 1 answer | 0

Question

button in a figure

How to add a button in a figure that changes the line style of a subplot,without using GUIDE?

circa 6 anni ago | 1 answer | 0

Question

Displaying image directly from a link to a MATLAB figure

Is there a way to take an image directly from a link and insert it in a figure? To be more clear an example follows: A fu...

circa 6 anni ago | 1 answer | 0

Question

Vectorization of for/loop

I have the following code: for ii = 1: length(angles) laminate.ply(ii).angle = angles(ii)/180*pi; laminate.ply(ii)...

circa 6 anni ago | 2 answers | 0