A résolu


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

plus de 11 ans il y a

A résolu


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

plus de 11 ans il y a

A résolu


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

plus de 11 ans il y a

A résolu


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

plus de 11 ans il y a

A résolu


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

plus de 11 ans il y a

A résolu


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

plus de 11 ans il y a

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How to write program to choose random numbers from given input set?
see *randi*

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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,'...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 11 ans il y a | 0

A résolu


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

plus de 11 ans il y a

Réponse apportée
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...

plus de 11 ans il y a | 1

Réponse apportée
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...

plus de 11 ans il y a | 1

A résolu


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

plus de 11 ans il y a

A résolu


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

plus de 11 ans il y a

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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 =...

plus de 11 ans il y a | 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...

plus de 11 ans il y a | 4 réponses | 1

4

réponses

A résolu


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

plus de 11 ans il y a

Réponse apportée
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...

plus de 11 ans il y a | 3

| A accepté

A résolu


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

plus de 11 ans il y a

A résolu


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

plus de 11 ans il y a

A résolu


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

plus de 11 ans il y a

A résolu


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

plus de 11 ans il y a

A résolu


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

plus de 11 ans il y a

A résolu


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

plus de 11 ans il y a

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

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

plus de 11 ans il y a | 0

| A accepté

A résolu


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

plus de 11 ans il y a

Charger plus