Effacer les filtres
Effacer les filtres

Error using reshape (Size arguments must be real integers)

2 vues (au cours des 30 derniers jours)
high speed
high speed le 31 Mar 2021
Commenté : Rik le 18 Juin 2021
I have this Matlab program:
for i = 2:length(Encode)/(2*(ms-1)) - 1
tmp = reshape(V_final (:, i ), 2 , length(V_final (:, i))/2);
uHat = [uHat tmp (1, :)]
end
[n ber (snr)] = biterr(uHat(1:M) , U) ;
Where:
Encode=[101010100010000010001000000000]
ms=5
V_final=[101010100010000010001000000000]
How can I solve the problem please
  1 commentaire
Rik
Rik le 18 Juin 2021
I recovered the removed content from the Google cache (something which anyone can do). Editing away your question is very rude. Someone spent time reading your question, understanding your issue, figuring out the solution, and writing an answer. Now you repay that kindness by ensuring that the next person with a similar question can't benefit from this answer.

Connectez-vous pour commenter.

Réponse acceptée

Jan
Jan le 31 Mar 2021
Modifié(e) : Jan le 31 Mar 2021
This is not meaningful:
V_final=[101010100010000010001000000000]
Do you mean this:
V_final=[1,0,1,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0]
This is a [1 x 30] vector. Then V_final(:, i) is a scalar and length(V_final(:, i))/2 equals 0.5 and of course this is no valid size. Most likely you want something else.
You do not explain neither in the text nor in comments, what you want to achieve. All the readers can see is a failing code. This is not enough information to suggest an improvement. What do you want uHat to be?

Plus de réponses (0)

Catégories

En savoir plus sur Historical Contests dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by