Risolto


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 9 anni fa

Risolto


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

oltre 9 anni fa

Risolto


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

oltre 9 anni fa

Risolto


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 9 anni fa

Risolto


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 9 anni fa

Risolto


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 9 anni fa

Risolto


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 9 anni fa

Risolto


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 9 anni fa

Risolto


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 9 anni fa

Risolto


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 9 anni fa

Risolto


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 9 anni fa

Risolto


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 9 anni fa

Risolto


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 9 anni fa

Risolto


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

oltre 9 anni fa

Risolto


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 9 anni fa

Domanda


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 9 anni fa | 5 risposte | 1

5

risposte

Domanda


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 9 anni fa | 1 risposta | 1

1

risposta

Domanda


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 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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 9 anni fa | 0 risposte | 0

0

risposte

Domanda


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 9 anni fa | 2 risposte | 0

2

risposte

Domanda


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 9 anni fa | 2 risposte | 0

2

risposte

Domanda


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 9 anni fa | 2 risposte | 0

2

risposte

Domanda


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 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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 9 anni fa | 1 risposta | 0

1

risposta

Domanda


Efficient way to impliment this expression
I got the following equation : <</matlabcentral/answers/uploaded_files/18120/equation.png>> Let me assume the follow...

oltre 9 anni fa | 0 risposte | 0

0

risposte

Domanda


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 9 anni fa | 2 risposte | 0

2

risposte

Domanda


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)

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 10 anni fa | 2 risposte | 0

2

risposte

Domanda


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

quasi 10 anni fa | 2 risposte | 0

2

risposte

Carica altro