# How to define a mapping from R^n to R

조회 수: 14 (최근 30일)
Ajai Singh 2022년 11월 23일
편집: Gowtham 2023년 9월 27일
Hello everyone,
I am trying to define a mapping from R^n to R referred to as basis function in the picture attached.
I have to no idea how to proceed.
Any suggestions would be really helpful.
Thank you.

댓글을 달려면 로그인하십시오.

### 답변 (1개)

Gowtham 2023년 8월 29일
편집: Gowtham 2023년 9월 27일
Hi Ajai,
I understand that you are given psi(y, u) in the space and want to map it to R space.
Assuming psi(y, u) is a column vector of size n, one way to map is by using dot product with a weight vector and performing sum on the result.
Example:
psi = [1; 2; 3];
weight = [2; 1; 2];
result = sum(weight .* psi);
result
result = 10
The above logic can be implemented in a function which maps . I hope it helps!
References:

댓글을 달려면 로그인하십시오.

### 카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

R2021b

### Community Treasure Hunt

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

Start Hunting!

Translated by