Solved


Checkmate
* The positions of different chess pieces are given in a cell *p* . * The position of the king is given as *x* Determine i...

4 years ago

Solved


En passant - 01
This is white's turn. The player moves his pawn. The pawn's previous and current positions are given. Determine whether th...

4 years ago

Solved


Valid Chess Moves
Using standard Algebraic notation ('' for a pawn), given previous move and a next move, output true if it is a valid move or fal...

4 years ago

Answered
i want mathlab programme for solving linear differential equation as metioned below
syms x1(t) x2(t) x3(t) k1 k2 k3 ode1 = diff(x1)==k3*x3-k1*x1+10; ode2 = diff(x2)==k1*x1-k2*x2; ode3 = diff(x3)==k2*x2-k3*x3...

4 years ago | 1

Solved


Secure password
You are joining the MATLAB Central platform to solve a question on Cody. The signup page requires you to input an id and a passw...

4 years ago

Solved


Evaluate the Kelvin functions
The Kelvin functions ber, bei, ker, and kei are related to Bessel functions of order . When the order is not specified, the defa...

4 years ago

Solved


Find the slope of a line that passes through two vectors
Given two vectors p1 and p2, return the slope of a line that passes through p1 and p2. Examples: Input [p1,p2] = deal([0,1],[...

4 years ago

Solved


SatCom #9: Overall Link Performance
Satellite and Space Engineering - Problem #9 This is part of a series of problems looking at topics in satellite and space comm...

4 years ago

Solved


SatCom #8: Satellite Link Budget
Satellite and Space Engineering - Problem #8 This is part of a series of problems looking at topics in satellite and space comm...

4 years ago

Solved


Truncatable Prime
A truncatable prime is a leading digit is successively removed, then all resulting numbers are prime. Wiki When given a number...

4 years ago

Answered
Problem stataments in Matlab
Final answer, I have tested this code on my laptop cd=0; %counting $ userd=[]; for i=1:size(T,1) if isequal(char(T.Colu...

4 years ago | 1

| accepted

Problem


Factor Digits
Check if a given number in an array of numbers is - Equidigital Number - A number that has the same number of digits as the num...

4 years ago | 1 | 9 solvers

Answered
I try this coding but it's say plot error..what wrong with my coding?
Use fplot to plot symbolic expressions syms t f=exp(t)*sin(3*t); c=0.003; I=c*diff(f); figure; fplot(I); grid; xlabel('...

4 years ago | 2

| accepted

Answered
Check for incorrect argument data type or missing argument in call to function 'isnan'.
The output of inputdlg is in form of cell array as you can see it your command window (below your editor) Use isaNumber = isna...

4 years ago | 1

Answered
hello! how can I create a matrix (size 10X10) with random numbers of 1 and -1?
y=[-1 1]; z=y(randi(2,10,10))

4 years ago | 1

Solved


Merge structs on fields
Merge a bunch of structs into one, containing the field names and corresponding values of all input structs. For duplicate field...

4 years ago

Answered
"Double for loop", question
Your data is being overwritten as the for loops runs. For the 1st for loop for i=1:n for j=1:n R(i)=a(j)*b(i);...

4 years ago | 1

Answered
replace matrix A with the values of another matrix B
A(:,:,1) = [0 0 1; 0 1 0; 0 1 1]; A(:,:,2) = [1 0 0; 0 0 0; 0 0 0]; A(:,:,3) = [0 1 0; 1 0 1; ...

4 years ago | 2

Answered
Mean and Median of Values in a matrix
I am giving you an example for one variable. meanvalue=[]; medianvalue=[]; for i=800:100:lastvalue y=flowrate(flowrate>=...

4 years ago | 1

Answered
How to generate a matrix with desired pattern using nested for loops?
n=5; A=zeros(n); for i = 1:n for j = min(i,n-i+1):max(i,n-i+1) A(i,j) = 1; end end A

4 years ago | 1

| accepted

Answered
I need to write a code to solve a system of equations with formatted output (fprintf).
A=[1, -3, 2; 2, -4, 3; 3, -5, -4]; B=[-11; -15; 5]; x=inv(A)*B; fprintf('x=%d, y=%d, z=%d.', x(1:3))

4 years ago | 1

Solved


Check Digit - 02
Given a list of ISBN's, check whether they're valid or not. Prev Prob - <https://www.mathworks.com/matlabcentral/cody/problem...

4 years ago

Answered
Find the gradient vector field of f . f (x,y,z)= x^2ye^y/z
syms f(x,y,z) f = x^2*y*exp(y/z) grad = gradient(f).'

4 years ago | 1

| accepted

Solved


Logic x

4 years ago

Solved


What is the current time in Darwin, Australia?
Traders need to track exchange calendars and trading hours in detail, and account for time zone differences and daylight savings...

4 years ago

Solved


chess position
given the position of a chess piece in algebric notation, convert it into 8 by 8 matrix format. For example, * 'Qd5' >> [3,4]...

4 years ago

Solved


decipher the number 1 - same key for all digits :)
You will be given a input number (eg) x=12345 you have to figure out the dechiper key and match it with given input and deciph...

4 years ago

Solved


Creation of 2D Sinc Surface
This Challenge is to efficiently create the Sombrero function of various sizes, resolutions, and frequencies. <<https://sites...

4 years ago

Answered
Problem stataments in Matlab
I'm assuming that the data in Column 1 and Column 2 is char/strings. %T is your table cd=0; %counting $ userd=[]; for i=1:si...

4 years ago | 0

Answered
if function works in one table but not in another
Use isequal or strcmp if you are comparing the whole string. Use ismember or array indexes if you want to compare partial stri...

4 years ago | 2

Load more