Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

urgent help please :::::( how can ı solve this ?

조회 수: 1 (최근 30일)
astronot
astronot 2016년 3월 18일
마감: MATLAB Answer Bot 2021년 8월 20일
mu=[1 1]';
p=0;
sigma=[1 2*p;2*p 4];
x= mu+sigma.*randn(1000,2);
this code gives me inner product error.
  댓글 수: 2
Adam
Adam 2016년 3월 18일
Putting "urgent" in a question title is more likely to just irritate people than persuade them to answer your question quickly. Everyone's work is urgent to themselves and not to anyone else. People will help if and when they can, irrespective of how urgent something is.

답변 (2개)

Torsten
Torsten 2016년 3월 18일
편집: Torsten 2016년 3월 18일
sigma is (2x2) and randn(1000,2) is (1000x2), so sigma*randn or sigma.*randn are not defined.
Best wishes
Torsten.

Guillaume
Guillaume 2016년 3월 18일
편집: Guillaume 2016년 3월 18일
  1. You need to be aware of the difference between element-wise multiplication and matrix multiplication
  2. Note the presence of i in the formula of the transformation. It is significant. To make x, you're either going to have to use a loop or bsxfun with some reshaping (with permute) of y.

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by