how to correct an error in command windows?

4 vues (au cours des 30 derniers jours)
Mohammed Furkhan
Mohammed Furkhan le 29 Avr 2020
Modifié(e) : DGM le 20 Juil 2023
Suppose i get an error in command window, is there any other way so i can correct the error in the specific line or should i write the whole code again?
  2 commentaires
Maria
Maria le 20 Juil 2023
SerialCode = reshape('TransmittedSig');1;size ('TransmittedSig',1)*size ;('TransmittedSig',2)]);
coreect the command
DGM
DGM le 20 Juil 2023
Modifié(e) : DGM le 20 Juil 2023
Nothing in what you posted is valid code. There is nothing to correct. Without any information about what you're trying to do, guessing is unproductive.
If you have a question, you can start a new question and include relevant details about the specific task. If the goal is to reshape a variable, what exactly is the variable, what are its initial and final shape and the manner in which its elements should be reordered?

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 29 Avr 2020
Click your up-arrow key as often as you need to in order to bring your focus to the line that needs to be changed. Continue clicking up-arrow until you get to the beginning of the outermost loop that encloses the code that you want to change (or even go back further if you need to re-initialize some values).
Now hold the shift key and click your down-arrow key until you arrive at the last line that you want to execute again. You will be able to see the lines being highlighted.
At that point, click left-arrow once. All of that code will now be available at the bottom of the command window.
You can now use your arrow keys or click with the mouse in order to edit the code. Do not press return to insert new lines -- press shift-return instead if you need to insert lines into the code.
When you are done making the changes, press return to execute the block of code.

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by