Solved


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

11 years ago

Solved


Rounding
Round 10.67 and make 'y' equal to that number.

11 years ago

Solved


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

11 years ago

Solved


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

11 years ago

Solved


Sum the real and imaginary parts of a complex number
Sum the real and imaginary parts of a complex number. Example c = 1+2i has the solution 1 + 2 = 3

11 years ago

Solved


Gauss Eliminate 2-by-2 example
Use forward elimination to make the coefficient matrix, A, an upper triangular matrix, and then solve using back substitution, f...

11 years ago

Answered
for loop for matlab files
% where N is the number of files for i = 1:N load(['M' num2str(N) '.m']) end This will change based on whether...

11 years ago | 0

| accepted

Answered
How to navigate through Struct/Cell from Matlab Gui?
For determining the datatype of the arrays selected by the user, see the *iscell* and *isstruct* functions. The *who* command ca...

11 years ago | 0

Answered
Plot doubt: how to fill the squares.
Try using the *MarkerFaceColor* property. Example: x = 0:pi/32:2*pi; y = sin(x); z = cos(x); plot(x,y,'s',x,z,'...

11 years ago | 0

| accepted

Answered
How to know time that spent matlab in solving problem?
help profile or help tic Running *tic* and *toc* will simply tell you how much time passed between the respective ...

11 years ago | 0

Solved


Let's get back to school, and create multiplication tables
For a given range, create multiplication tables. (start is always < endno) Example start = 17 endno = 19 Then, ...

11 years ago

Answered
Easy for loop question
i must be a real, *positive* integer. Because i starts at 1, and you reference A(i-1,2), your first iteration will try to access...

11 years ago | 1

Answered
How to retain only the positive root of a quadratic equation?
help imag So, if you wanted to return only roots without complex parts: R_all = roots([1 1 0 1]); R_real = R_all(~i...

11 years ago | 1

Solved


Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
Given a number _n_, return the terminal value of the number chain formed by summing the square of the digits. According to the P...

11 years ago

Solved


Flip the bit
Given an input character string (e.g. '1001'), return a character string with the bits flipped ('0110').

11 years ago

Answered
How to accept an answer in a comment?
If you can't get them to re-submit it themselves, and if flagging doesn't work, I would just copy+paste it into an answer of you...

11 years ago | 0

Answered
Making a list from two arrays
How about this? A = 'abcd'; B = [1 2 3 4]; fid = fopen('my_txt_file','w'); s = []; for i = 1:numel(A) s =...

11 years ago | 0

Question


When zooming, 3D plotted data exceeds uipanel extent despite axes being clipped
I'm working with a GUI which has a number of uicontrols as well as a set of axes. I would like the user to be able to zoom in on...

11 years ago | 4 answers | 1

4

answers

Solved


Find the square of the sum of the digits of a number
If a number (n) is provided as an input, find the square of the sum of the digits of the number. Example If n = 21, the an...

11 years ago

Answered
How do I update my slider using an edit text?
To make the slider update when the editbox is updated, put the update code in the editbox callback function myEditBox_Callb...

11 years ago | 3

| accepted

Solved


Product of elements in row
Product of matrix such that a=[3 3 1] b=9

11 years ago

Solved


Area of a circle
Find the value for area of the circle if diameter is given

11 years ago

Solved


Dudeney Numbers: Numbers which are the cube of their decimal sum
From Wikipedia: _A Dudeney number is a positive integer that is a perfect cube such that the sum of its decimal digits is equa...

11 years ago

Solved


Max Change in Consecutive Elements
If an array is given as input then find the index of consecutive elements that represent maximum change. Example: Input ...

11 years ago

Solved


Change the first and last diagonal element of the identity matrix to zero
Starting with the identity matrix, change first and last diagonal element to zero. Example If n=5 A = 0 0 ...

11 years ago

Solved


index of n in magic(n)
let input=5; magic matrix 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 ...

11 years ago

Answered
Evan, if I want to return back
Disclaimer: Not having experience with GAs myself, I can offer something that will make what you're wanting to do work, but I ha...

11 years ago | 0

| accepted

Answered
Dear all , I still need an answer
Is this what you mean? x = [0011741667,0003913892,0014488700,0008746350,0000349066]; s = regexprep(sprintf('%011.6f', ...

11 years ago | 0

| accepted

Solved


Find the maximum two numbers of every column of a matrix
Find the maximum two numbers of every column of a matrix. Example: If we input a matrix A = [ 1 2 4 6 0 3 ...

11 years ago

Load more