MATLAB Spoken Here

MATLAB Answers for MATLAB questions 8

Posted by Helen Chen,

At the beginning of this year, when we launched MATLAB Answers, Garth and Doug blogged to tell the world about our latest addition to MATLAB Central. Since then, over 17,000 people have contributed and have accrued some MATLAB Answers “reputation”! There have been so many really great questions and answers made by our community members on MATLAB Answers.

I thought it would be fun to spotlight contributions by some of our community members in this post.

Our MATLAB Answers Editors

Walter Roberson and Matt Fig have both become MATLAB Answers Editors by reaching a reputation of 1500. If you have posted questions on Answers, it is likely that you have received a response from one of them since between them, they have posted over 2500 answers! Now, with their new roles, they are able to help improve usefulness of our library of questions and answers by editing content to make them more understandable and relevant. Thanks, Walter and Matt, for all your work making MATLAB Answers an awesome place for everyone!

 

Walter Roberson, MATLAB Answers Editor
Walter Roberson


Matt Fig

How to Use MATLAB Answers

Speaking of making questions and answers more readable, have you read Oleg Komarov‘s tutorial on how to ask a question (on Answers) and get a fast answer? He has some great ideas on different ways you can look for solutions before posting your question. You can also check out community responses to Ned Gulley‘s question “How do I write a good question for MATLAB Answers?” for more ideas. Remember that if you can present your question clearly, specifically stating where you are encountering problems and what you have done to troubleshoot, you are more likely to get a response from other members of the community. Give these questions a read!


Oleg Komarov


Ned Gulley

By the way, if you are a student, there’s a related post by Doug Hull about how to ask for help with your homework questions. :-)


Doug Hull

If you’ve had someone help you out by answering your question, you know how great it feels that someone has taken the time to help you. Take a moment to accept an answer. This is a great way to say “thank you” to the fellow community member. Pay it forward by jumping in and sharing your MATLAB knowledge with others by answering some questions.

Just for Fun

Community members have shared their own insights in a series of questions and answers that are sure to put a smile on your face. Do any of their experiences remind you of things that you experienced?

And don’t forget to check out Matt Fig’s Hump Day puzzles!


Matt Fig


Andrew Newell

A big thank you to everyone who has participated in MATLAB Answers. Your efforts are what make the MATLAB Central community such a cool place to hang out.

Until next time, see you online!

8 CommentsOldest to Newest

Please i need answer ti this class practice I have tried my best on the question but i am issues with FOR LOOP

Question: Write 4 lines of code to use a For Loop in the variable i to calculate and store the values of t and h=(3+t)t.
Continuing with the above and assuming the out variable is h, allocate memory with NaN command for t and h.

M1=M(:,:,1,8)+M(:,:,1,7)+M(:,:,1,6)+M(:,:,1,5)+ …. M(:,:,1,4)+M(:,:,1,3)+M(:,:,1,2)+M(:,:,1,1);
M2=M(:,:,2,8)+M(:,:,2,7)+M(:,:,2,6)+M(:,:,2,5)+ …. M(:,:,2,4)+M(:,:,2,3)+M(:,:,2,2)+M(:,:,2,1);
M3=M(:,:,3,8)+M(:,:,3,7)+M(:,:,3,6)+M(:,:,3,5)+ …. M(:,:,3,4)+M(:,:,3,3)+M(:,:,3,2)+M(:,:,3,1);

I know it would be easy but as know sometimes, you get confusion when you are trying to write code :(
Assume I have some summation of the Matrix like above
how can I use “for command” to wrap up my expression?
Many Tnx

I solved it by myself :)

Aaa=zeros(1,32090,tr);
for i=1:tr
for k=1:des+1
MaxM1(:,:,i)=Moment(:,:,i,k);
Aaa(:,:,i)=MaxM1(:,:,i)+Aaa(:,:,i);
end
end

These postings are the author's and don't necessarily represent the opinions of MathWorks.