Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

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

más de 11 años hace | 0

| aceptada

Respondida
How to write program to choose random numbers from given input set?
see *randi*

más de 11 años hace | 0

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

más de 11 años hace | 0

Respondida
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,'...

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 0

Resuelto


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

más de 11 años hace

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

más de 11 años hace | 1

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

más de 11 años hace | 1

Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

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

más de 11 años hace | 0

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

más de 11 años hace | 0

Pregunta


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

más de 11 años hace | 4 respuestas | 1

4

respuestas

Resuelto


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

más de 11 años hace

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

más de 11 años hace | 3

| aceptada

Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

Resuelto


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

más de 11 años hace

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 0

| aceptada

Resuelto


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

más de 11 años hace

Cargar más