Solved


Code breaker, Part I: Operation Phoenix
You have been tasked with decoding a set of coded messages that have been intercepted. Based on previous intelligence that ...

5 years ago

Solved


Eliminate redundant numbers in text
Occasionally someone might write text such as Briefly explain one (1) common problem that can result from the constant use of ...

5 years ago

Solved


Write out numbers in words
Write out numbers in words ( range [0-9999] ) with British spelling rules. For example; * 1 > one * 56 > fifty-six * 100 >...

5 years ago

Answered
Will the program run
No loops needed. I assume your j is imaginary and that you only want to plot the real part of f. e=8.854*10^(-12); l=1:5; z=...

5 years ago | 0

Answered
How can i create a char of a character vector as a result of this routine?
Stotal=[0.38 0.007 0.09 0.18 0.34;0.18 0.19 0.17 0.03 0.46;0.19 0.0162 0.68 0.09 0.02;0.08 0.45 0.11 0.045 0.30;0.39 0.09 0.34 0...

5 years ago | 1

| accepted

Solved


Find the sum of the following series
A(n)=(n*(n-1)!)/(n-2)!

5 years ago

Answered
How to generate 0 and 1 matrix in specific condition.
Brute force a=randi(2,4,5)-1; while any(sum(a)<2) a=randi(2,4,5)-1; end

5 years ago | 0

Answered
Solving a complex equation with all real answers
syms R C; eqn=1/(1i+(-50-25000*R*C*1i)/R)==-.1; r=solve(eqn,R); c=solve(eqn,C);

5 years ago | 0

Solved


Count unique orderings of vertices of a polygon
Cody Problem 2671 asks us to determine whether four points can be the corners of a rectangle. The points are not necessarily inp...

5 years ago

Solved


Solve an ODE: equation C
Write a function to solve the following ordinary differential equation: with and . The parameter is a constant. The functi...

5 years ago

Solved


Find all vampire fangs
A <http://en.wikipedia.org/wiki/Vampire_number vampire number> is a number v that is the product of two numbers x and y such th...

5 years ago

Solved


Pandiagonal Prime Magic Square Verification
Verify if an NxN matrix is a Pandiagonal Prime Magic Square. Required properties: 1) N^2 prime values ( No repeats, 1 ...

5 years ago

Solved


is the number happy?
test is a given integer number is Happy of not? answer 1 if yes or 0 is no

5 years ago

Answered
How to use the result of mn matrix at each loop step to do the calculation of amn?
format long E=209e+3; q=1; h=15; D=6.459478e+07; a=600;b=2400; % Control the value of mn c=2; for f=1:c k=[3:2:...

5 years ago | 1

| accepted

Answered
for loop, while loop
Something like this should work. Could not check, since all variables were not provided. syms x1 x2 x3 x=[x1 x2 x3]; for k=1:...

5 years ago | 0

| accepted

Answered
Cumulative sum doesn't work.
t=readmatrix('Terzaghi2.xlsx');%load matrix and look where everything is at a=t(2,7); b=t(1,7)+a; idx1=find(t(:,2)==a); idx2...

5 years ago | 0

| accepted

Answered
How to highlight each points in graph
Look at marker within the plot command. x=1:5; plot(x,x,'Marker','*');

5 years ago | 0

Answered
How to find a certain range of values in a double
a=LV.MD(1).Initial(1).esd; for k=1:100%not sure how high you want to go here A{k}=a(a>=k&a<=2*k); end

5 years ago | 1

| accepted

Answered
For Loop Table Matlab
data=readtable('Results.csv'); m=mean(reshape(data.MaxPosition,2,[]));%assuming two consecutive labels for all pictures

5 years ago | 0

| accepted

Answered
Matrix division by sum of elements
a=[2 0;2 2]; a=sym(a); a=a/sum(a,'all');

5 years ago | 0

Answered
For Loop Table Matlab
m=mean(reshape(T.MaxPosition,2,[]));%assuming two consecutive labels for all pictures

5 years ago | 1

Answered
Extract arrays from cell with order in a for loop
t = size(A,2); for j=1:t newArray(j,:) = A{j}';%better to put into a matrix and just index into it than create a whole bunc...

5 years ago | 1

Answered
Calculating Integral of envelope
cumtrapz(upper-lower);

5 years ago | 0

| accepted

Answered
Program to generate permutations in a certain order
k=4; X=[1 1 0 1;1 0 1 0;1 0 1 1;1 1 1 0;0 1 0 1;0 0 0 1]'; p=perms(6:-1:1); m1=reshape(X(:,p(1:k,:)'),24,[])'; m2=reshape(X(...

5 years ago | 0

| accepted

Answered
Convolution (Matrix Multiplication)
newMatrix=-conv2(a,b,'valid');

5 years ago | 1

Answered
I cannot integrate my signal
x=10e5; t=0:50; f=exp(t); i=cumtrapz(f); plot(t,i);

5 years ago | 0

Solved


Sum the elements in rows of the Levine triangle
The Levine triangle starts as follows: Row 0: 2 Row 1: 1 1 Row 2: 1 2 Row 3: 1 1 2 To construct each row, r...

5 years ago

Answered
How to extract all rows that only one columns has a value greater than?
a=table2array(yourTable); [idx,~]=find(a>50); a=a(unique(idx),:);%this should give you what you are looking for

5 years ago | 1

Answered
Need some help with loop
No loop needed. [v,p]=meshgrid(5:5:40,50:50:300); FVF=.001; Fv=27056; LoF=p.*(v.^2)*FVF*Fv;

5 years ago | 0

Load more