Solved


Cannon Ball
Given g (acceleration due to gravity) and desired altitude x, find the minimum ground velocity of a cannon ball to reach x.

5 years ago

Solved


Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

5 years ago

Solved


Basic electricity in a dry situation
&#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#...

5 years ago

Solved


The shortest man in the world

5 years ago

Answered
How to show the iterations and the answers and the graph
Why not use a while loop? m = 68.1; g = 9.81; t = 10; v = 40; f =@(c) (g*m*(1-(exp((-c*t)/m)))/c)-v; err = 1e-10; c = 0.1...

5 years ago | 0

Answered
Not seeing second plot data
theta = 0:0.02:1; y = sin(theta); plot(theta, y, theta, 1- (theta - y)./y);%need ./ also to keep it the same scale chose 1 ins...

5 years ago | 1

Solved


Highest building

5 years ago

Solved


Normalizing a vector

5 years ago

Solved


Min-Max digit

5 years ago

Solved


Similar triangles

5 years ago

Solved


End Digits

5 years ago

Solved


Do you have the minimum age?

5 years ago

Solved


Digits Multiplication

5 years ago

Solved


Diophantine Equations (Inspired by Project Euler, problem 66)
Consider the quadratic Diophantine equation of the form: x^2 – Dy^2 = 1 When D=13, the minimal solution in x is 649^2 – 13...

5 years ago

Solved


The tallest man in the world

5 years ago

Answered
How can I implement nested for loops to return all the possible combinations
Your missing a few references. Just form a matrix of all possible combinations using meshgrid. No loops needed. WT_r = 1:0.5:30...

5 years ago | 0

Answered
Find the index that represents a percentage of area
s = 1; mu = 0; xstart = -10; xend = 10; xstep = 0.1; x_range = xstart:xstep:xend; my_pdf = normpdf(x_range,mu,s); figure x=n...

5 years ago | 0

| accepted

Answered
For loop output into array
annual_power=zeros(1,12); ref=[18.7633 19.5139 18.7633 15.0107 11.2580 10.5075 11.2580 13.5096 16.5117 17.2623 18.7633]; for i...

5 years ago | 0

Answered
How to do a number selector
I assume you mean something like this. maxNum=50; a=input('lucky dip==1 or choose your own numbers==2'); if a==1 numbers=r...

5 years ago | 0

| accepted

Answered
How can I generate voctors of double values from another bector?
v2=[0,v1]; newVector=v2(randi(length(v2),1,m));

5 years ago | 0

Answered
Real solutions to polynomials
Why not just use roots()? a=roots([5 -12 55 -120 124 -48]); r=[]; for k=1:length(a) if isreal(a(k)) r=[r,a(k)]; e...

5 years ago | 0

Answered
Error while performing integration
Or don't even have a Zdirection function x=1:0.1:5; a=5; alpha=30*pi/180; beta=120*pi/180; Z=3; for i=1:length(x) z(i)...

5 years ago | 0

Answered
While Loop, with a user made function
You will need to figure out how you want to compare the maxtrices, less than (<) compares element-to-element producing a logical...

5 years ago | 0

Answered
How do I add to a cell array based on logicals?
There might be an easier way. Here is one with a single loop. b=num2str(B); b=b(b~=' '); [idx1,idx2]=regexp(b,'[0]+'); for k...

5 years ago | 0

| accepted

Answered
How to delete every "n thru m" rows?
I might not understand your question fully. What is the size of your matrix? (260x1) yourMatrix(151:181,:)=[];%deletes rows in ...

5 years ago | 0

Load more