MATLAB Central Discussions - Join the conversation!
Contenido principal

Resultados de


Image Analyst
Image Analyst
Última actividad el 16 de Oct. de 2023

Albert Einstein uses MATLAB
Image Analyst
Image Analyst
Última actividad el 24 de Oct. de 2023

Dynamic Field Name shaming
Image Analyst
Image Analyst
Última actividad el 16 de Oct. de 2023

We told you "NO!!!"
Image Analyst
Image Analyst
Última actividad el 16 de Oct. de 2023

I climbed the L-Shaped Peak
Image Analyst
Image Analyst
Última actividad el 16 de Oct. de 2023

Choose your weapon
Image Analyst
Image Analyst
Última actividad el 16 de Oct. de 2023

Image Analyst
Image Analyst
Última actividad el 16 de Oct. de 2023

Caution. This is MATLAB.
Image Analyst
Image Analyst
Última actividad el 16 de Oct. de 2023

MATLAB is the best programming language
Image Analyst
Image Analyst
Última actividad el 16 de Oct. de 2023

I love the smell of debugged MATLAB code in the morning. Smells like...Victory!
Shore
Shore
Última actividad el 16 de Oct. de 2023

Halloween Analysis of Many Aspects of Halloween Headquarters and Effects on USA
(Note to Chistopher: I used a simple ESP8266 generating random numbers for fields 1 thru 7, (0 to 100, 4000, 127, 30, 45, 200,000, 50,000) and 0 to 1 for field 8. And a couple of real sensor inputs.
Chen Lin
Chen Lin
Última actividad el 16 de Oct. de 2023

I'm in a community conference in Boston today and see what snacks we get! The organizer said it's a coincidence, but it's definitly a good idea to have them in our MathWorks community meetings.
Image Analyst
Image Analyst
Última actividad el 3 de Oct. de 2023

(Sorry - it should be 2023b by now.)
Mike Croucher
Mike Croucher
Última actividad el 10 de Mayo de 2024

Ben Pasquariello
Ben Pasquariello
Última actividad el 19 de En. de 2024

Calling all students! New to MATLAB or need helpful resources? Check out our MATLAB GitHub for Students repository! Find MATLAB examples, videos, cheat sheets, and more!
Visit the repository here: MATLAB GitHub for Students
Imagine x is a large vector and you want the smallest 10 elements. How might you do it?
Rena Berman
Rena Berman
Última actividad el 11 de Oct. de 2023

To solve the puzzle, first unscramble each of the words on the left. Then rearrange the letters in the yellow shaded boxes to complete the sentence on the right.
If you enjoyed this puzzle let me know with a like or in the comments below and I'll post more of them. Please don't post your answer, or any hints, and spoil it for those who come across this puzzle after you!! If you want to check your answer, you can messge me your guess through the link on my profile card (click on my name, Rena Berman, above and then on the envelope icon in the top right corner of the profile card that appears).
Mayla
Mayla
Última actividad el 19 de Sept. de 2023

Thats the task:
Given a square cell array:
x = {'01', '56'; '234', '789'};
return a single character array:
y = '0123456789'
I wrote a code that passes Test 1 and 2 and one that passes Test 3 but I'm searching a condition so that the code for Test 3 runs when the cell array only contains letters and the one for Test 1 and 2 in every other case. Can somebody help me?
This is my code:
y = []
[a,b]=size(x)
%%TEST 3
delimiter=zeros(1,a)
delimiter(end)=1
delimiter=repmat(delimiter,1,b)
delimiter(end)=''
delimiter=string(delimiter)
y=[]
for i=1:a*b
y = string([y x(i)])
end
y=join(y,delimiter)
y=erase(y,'0')
y=regexprep(y,'1',' ')
%%TEST 1+2
for i=1:a*b
y = string([y x(i)])
y=join(y)
end
y=erase(y,' ' )
Mayla
Mayla
Última actividad el 13 de Sept. de 2023

That's the question: Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them comprise sides of a right-angled triangle. Return true if they do, otherwise return false .
I wrote this code but it doesn't pass test 7. I don't really understand why it isn't working. Can somebody help me?
function flag = isTherePythagoreanTriple(a, b, c, d)
a2=a^2
b2=b^2
c2=c^2
d2=d^2
format shortG
if a2+b2==c2
flag=true
else if a2+b2==d2
flag=true
else if a2+c2==d2
flag=true
else if c2+b2==d2
flag=true
else flag=false
end
end
end
end
end
Go to top of page