Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 0

Gelöst


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

mehr als 11 Jahre vor

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

mehr als 11 Jahre vor | 1

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

mehr als 11 Jahre vor | 1

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

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

mehr als 11 Jahre vor | 0

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

mehr als 11 Jahre vor | 0

Frage


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

mehr als 11 Jahre vor | 4 Antworten | 1

4

Antworten

Gelöst


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

mehr als 11 Jahre vor

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

mehr als 11 Jahre vor | 3

| akzeptiert

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

Gelöst


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

mehr als 11 Jahre vor

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

mehr als 11 Jahre vor | 0

| akzeptiert

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

mehr als 11 Jahre vor | 0

| akzeptiert

Gelöst


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

mehr als 11 Jahre vor

Mehr laden