Plotting error non numeric vertex definition

Plotting error non numeric vertex definition Error, illegal use of an object as a name. please help, thank you! Maple Code to solve Perturbation Iteration Solutio. May I please get a Maple code to solve the below Perturbation Iteration Solutions for Volterra Integral Equations? I shall be very much grateful if I can get […]

Содержание

  1. Plotting error non numeric vertex definition
  2. Error, illegal use of an object as a name.
  3. Maple Code to solve Perturbation Iteration Solutio.
  4. Any comment, idea or innovation to calculate this .
  5. How to multiply all elements of a vector.
  6. Least Squares Method.
  7. Как исправить в R: нечисловой аргумент бинарного оператора
  8. Как воспроизвести ошибку
  9. Как исправить ошибку
  10. Дополнительные ресурсы
  11. Основы Maple
  12. Декларации об ошибках
  13. What does the error code «Error using plot Non-numeric data is not supported in ‘Line’» mean?
  14. Direct link to this question
  15. Direct link to this question
  16. Answers (1)
  17. Direct link to this answer
  18. Direct link to this answer
  19. Direct link to this comment
  20. Direct link to this comment
  21. Direct link to this comment
  22. Direct link to this comment
  23. See Also
  24. Categories
  25. Community Treasure Hunt
  26. How to Get Best Site Performance
  27. Americas
  28. Europe
  29. Asia Pacific
  30. Как исправить в Pandas: TypeError: нет числовых данных для построения
  31. Как воспроизвести ошибку
  32. Как исправить ошибку
  33. Дополнительные ресурсы

Plotting error non numeric vertex definition

Error, illegal use of an object as a name.

please help, thank you!

Maple Code to solve Perturbation Iteration Solutio.

May I please get a Maple code to solve the below Perturbation Iteration Solutions for Volterra Integral Equations?

I shall be very much grateful if I can get the Maple Code.

And possible plotting

Any comment, idea or innovation to calculate this parametric integral?

Note M, II, JJ are arbitrary positive integers (0 Asked by: Md Sagib 5

What does the following message imply?

«Error, (in Engine:-Dispatch) invalid boolean expression: 0»

How to multiply all elements of a vector.

For a vector of floats like this:

How do I get the 24 (=4*3*2)?

Least Squares Method.

Now, there are two unknows, and i cant seem to get it right.

Its «the method of the least squares», and it has gone wrong. How terrible, now ive made many books, but this book always sets me up, you may have guessed it: the Dutch Math book strikes again.

Ive tried to use a value, it looks like i used the rights steps, but the wrong input, the solution does not give me anything that looks like it is doing the rigth thing. Checking the new formula does not give the solution it is suppose to give. Now i know they mentioned that x=1/I but that does not give the right answer either.

Okey the question states: «A battery delivers a current I to a circuit with an external(not inside the battery) resistance Ry. The battery has an internal resistance Ri and delivers a source tension (voltage) U. These are the formulas U=(Ry+Ri)*I, of which follows: Ry+Ri=U/I. We state that x= 1/I and then we get Ry+Ri=U*x, of which follows: Ry=U*x-Ri.

That last formula gives a linear conjunction between x and Ry. There are a couple of measurements done, of which different values of the resistance Ry and the current I is measured (look at table 5.4). The value of x is determined by the smallest squares method.»

While i did not use x instead of I, it made no difference. I was no where close to the results. I think i am misschien something.

Источник

Как исправить в R: нечисловой аргумент бинарного оператора

Одна ошибка, с которой вы можете столкнуться в R:

Эта ошибка возникает, когда вы пытаетесь выполнить какую-либо бинарную операцию над двумя векторами, и один из векторов не является числовым.

Примеры бинарных операций включают в себя:

  • Вычитание ( )
  • Дополнение ( + )
  • Умножение ( * )
  • Дивизия ( / )

Эта ошибка возникает чаще всего, когда один из векторов, которые вы предоставляете, является вектором символов.

В этом руководстве рассказывается, как именно исправить эту ошибку.

Как воспроизвести ошибку

Предположим, у нас есть следующий фрейм данных в R:

Теперь предположим, что мы пытаемся создать новый столбец с именем «нетто», вычитая столбец «возврат» из столбца «продажи»:

Ошибка возникает из-за того, что столбец «возврат» относится к классу «символ» и невозможно вычесть столбец символов из числового столбца.

Как исправить ошибку

Способ исправить эту ошибку — использовать as.numeric() для преобразования столбца «возврат» в числовой перед выполнением вычитания:

Мы смогли выполнить вычитание без каких-либо ошибок, потому что столбцы «продажи» и «возвраты» были числовыми.

Дополнительные ресурсы

В следующих руководствах объясняется, как устранять другие распространенные ошибки в R:

Источник

Основы Maple

Декларации об ошибках

  1. Если получен неожиданный ответ, то зачастую причина в том, что Maple понимает переменную иначе, чем вы хотели бы ее представить. Например, полагая, что х – только число, можно легко ошибиться, поскольку на самом деле оказывается, что х – это переменная. Исправить можно так:

тогда Maple представит себе переменные х и у должным образом. Учтите, что попытка заставить Maple выдать числа, применяя assume к переменной, может создать проблему.

  • Ещё одна общая проблема связана с «конкуренцией» знаков = и := . Если используете = , имея в виду присвоение ( := ), то (иногда) можете обнаружить, что переменная, которой (как вы думаете) что-то присвоено, на самом деле пуста, в ней ничего нет.
  • Maple выдает декларацию об ошибке (illegal characterнеправильный символ), но вы не видите в строке ничего неправильного.
    1. Посмотрите, где находится первый пробел в команде, например, не стоит ли между знаком > и первым символом команды. Уберите этот пробел.
    2. Если проблеме не исчезла, сотрите полностью строку и перенаберите ее заново.
  • Получена декларация: Error, ‘;’ unexpected. Проверьте скобки.
  • emptyplot (пустой график).

    Причина: синтаксическая ошибка при построении выражений.

    axes appear, but no function is plotted (есть только оси координат, но нет графика).

    Так получается, если неправильно заданы параметры осей графика.

    Error, (in plot) invalid arguments (Ошибка, (в графике) неверные аргументы).

    Возможно, вы пытаетесь построить график с переменной, которой было присвоено значение.

    Error, (in plot/transform) can not evaluate boolean: –5.*z = вместо := .

    Parametric plot gives two plots instead (Выдаются два графика вместо параметрического графика).

    Это случается, если неправильно поставлены скобки [ ] .

    Function plotting fails (График функции не получился).

    Не удается построить график только что определенной функции f(x) с помощью plot(f(x),x=0..5) . Проверьте, что находится в переменной, содержащей f(x).

    Error, wrong number (or type) of parameters in function diff (Ошибка, неверное количество или тип параметров в функции diff).

    То же, что и в проблеме неприсваивания при построении графиков (см. выше), но только для diff .

    Нужно применить unassign x (не забудьте применить кавычки):

    Error, (in int) wrong number (or type) of arguments (Ошибка, (в int) неправильное число (или тип аргументов)).

    То же, что и в неприсваивании при построении графиков (см выше), но только для int .

    Нужно применить unassign x (не забудьте использовать кавычки):

    Nothing comes back (нет ответа).

    Иногда Maple может решить систему, если коэффициенты являются рациональными числами, и не может, если они являются числами с плавающей точкой. Поэтому не используйте x*0.01 – вместо этого используйте x/100.

    Error, too many levels of recursion or Warning, recursive definition of name (Ошибка, слишком много уровней рекурсии или Предупреждение, рекурсивное определение имени).

    You want x to be a variable, but it is a number instead (Вы хотите, чтобы х был переменной, но на самом деле – это число).

    Ранее x было присвоено значение, а нужна переменная.

    Это иной путь «расприсваивания» переменной.

    Error, (in assign) invalid arguments (Ошибка,(в присваивании) неверные аргументы).

    Источник

    What does the error code «Error using plot Non-numeric data is not supported in ‘Line’» mean?

    Direct link to this question

    Direct link to this question

    0 Comments

    Answers (1)

    Direct link to this answer

    Direct link to this answer

    2 Comments

    See Also

    Categories

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

    An Error Occurred

    Unable to complete the action because of changes made to the page. Reload the page to see its updated state.

    Select a Web Site

    Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

    You can also select a web site from the following list:

    How to Get Best Site Performance

    Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

    Americas

    Europe

    • Belgium (English)
    • Denmark (English)
    • Deutschland (Deutsch)
    • España (Español)
    • Finland (English)
    • France (Français)
    • Ireland (English)
    • Italia (Italiano)
    • Luxembourg (English)
    • Netherlands (English)
    • Norway (English)
    • Österreich (Deutsch)
    • Portugal (English)
    • Sweden (English)
    • Switzerland
      • Deutsch
      • English
      • Français
    • United Kingdom (English)

    Asia Pacific

    • Australia (English)
    • India (English)
    • New Zealand (English)
    • 中国
      • 简体中文 Chinese
      • English
    • 日本 Japanese (日本語)
    • 한국 Korean (한국어)

    Accelerating the pace of engineering and science

    MathWorks is the leading developer of mathematical computing software for engineers and scientists.

    Источник

    Как исправить в Pandas: TypeError: нет числовых данных для построения

    Одна ошибка, с которой вы можете столкнуться при использовании pandas:

    Эта ошибка возникает, когда вы пытаетесь вывести значения из кадра данных pandas, но нет числовых значений для построения.

    Эта ошибка обычно возникает, когда вы думаете, что определенный столбец в DataFrame является числовым, но оказывается, что это другой тип данных.

    В следующем примере показано, как исправить эту ошибку на практике.

    Как воспроизвести ошибку

    Предположим, у нас есть следующие Pandas DataFrame:

    Теперь предположим, что мы пытаемся построить линейный график для трех переменных, которые, по нашему мнению, являются числовыми: очки, подборы и блоки:

    Мы получаем ошибку, потому что ни один из этих столбцов на самом деле не является числовым.

    Как исправить ошибку

    Мы можем использовать функцию dtypes , чтобы увидеть, какой тип данных имеет каждый столбец в нашем DataFrame:

    Мы видим, что ни один из столбцов в DataFrame не является числовым.

    Мы можем использовать функцию .astype() для преобразования определенных столбцов в числовые:

    Затем мы можем снова использовать функцию plot() :

    Мы можем успешно построить линейный график для очков, подборов и блоков, потому что каждая переменная теперь является числовой.

    Мы можем убедиться в этом, снова воспользовавшись функцией dtypes :

    Дополнительные ресурсы

    В следующих руководствах объясняется, как исправить другие распространенные ошибки в Python:

    Источник

    Основы Maple

    Декларации об ошибках

    1. Если получен неожиданный ответ, то зачастую причина в том, что Maple понимает переменную иначе, чем вы хотели бы ее представить. Например, полагая, что х – только число, можно легко ошибиться, поскольку на самом деле оказывается, что х – это переменная. Исправить можно так:

    тогда Maple представит себе переменные х и у должным образом. Учтите, что попытка заставить Maple выдать числа, применяя assume к переменной, может создать проблему.

  • Ещё одна общая проблема связана с «конкуренцией» знаков = и := . Если используете = , имея в виду присвоение ( := ), то (иногда) можете обнаружить, что переменная, которой (как вы думаете) что-то присвоено, на самом деле пуста, в ней ничего нет.
  • Maple выдает декларацию об ошибке (illegal characterнеправильный символ), но вы не видите в строке ничего неправильного.
    1. Посмотрите, где находится первый пробел в команде, например, не стоит ли между знаком > и первым символом команды. Уберите этот пробел.
    2. Если проблеме не исчезла, сотрите полностью строку и перенаберите ее заново.
  • Получена декларация: Error, ‘;’ unexpected. Проверьте скобки.
  • emptyplot (пустой график).

    Причина: синтаксическая ошибка при построении выражений.

    axes appear, but no function is plotted (есть только оси координат, но нет графика).

    Так получается, если неправильно заданы параметры осей графика.

    Error, (in plot) invalid arguments (Ошибка, (в графике) неверные аргументы).

    Возможно, вы пытаетесь построить график с переменной, которой было присвоено значение.

    Error, (in plot/transform) can not evaluate boolean: –5.*z = вместо := .

    Parametric plot gives two plots instead (Выдаются два графика вместо параметрического графика).

    Это случается, если неправильно поставлены скобки [ ] .

    Function plotting fails (График функции не получился).

    Не удается построить график только что определенной функции f(x) с помощью plot(f(x),x=0..5) . Проверьте, что находится в переменной, содержащей f(x).

    Error, wrong number (or type) of parameters in function diff (Ошибка, неверное количество или тип параметров в функции diff).

    То же, что и в проблеме неприсваивания при построении графиков (см. выше), но только для diff .

    Нужно применить unassign x (не забудьте применить кавычки):

    Error, (in int) wrong number (or type) of arguments (Ошибка, (в int) неправильное число (или тип аргументов)).

    То же, что и в неприсваивании при построении графиков (см выше), но только для int .

    Нужно применить unassign x (не забудьте использовать кавычки):

    Nothing comes back (нет ответа).

    Иногда Maple может решить систему, если коэффициенты являются рациональными числами, и не может, если они являются числами с плавающей точкой. Поэтому не используйте x*0.01 – вместо этого используйте x/100.

    Error, too many levels of recursion or Warning, recursive definition of name (Ошибка, слишком много уровней рекурсии или Предупреждение, рекурсивное определение имени).

    You want x to be a variable, but it is a number instead (Вы хотите, чтобы х был переменной, но на самом деле – это число).

    Ранее x было присвоено значение, а нужна переменная.

    Это иной путь «расприсваивания» переменной.

    Error, (in assign) invalid arguments (Ошибка,(в присваивании) неверные аргументы).

    Источник

    Как исправить в R: нечисловой аргумент бинарного оператора

    Одна ошибка, с которой вы можете столкнуться в R:

    Эта ошибка возникает, когда вы пытаетесь выполнить какую-либо бинарную операцию над двумя векторами, и один из векторов не является числовым.

    Примеры бинарных операций включают в себя:

    • Вычитание ( )
    • Дополнение ( + )
    • Умножение ( * )
    • Дивизия ( / )

    Эта ошибка возникает чаще всего, когда один из векторов, которые вы предоставляете, является вектором символов.

    В этом руководстве рассказывается, как именно исправить эту ошибку.

    Как воспроизвести ошибку

    Предположим, у нас есть следующий фрейм данных в R:

    Теперь предположим, что мы пытаемся создать новый столбец с именем «нетто», вычитая столбец «возврат» из столбца «продажи»:

    Ошибка возникает из-за того, что столбец «возврат» относится к классу «символ» и невозможно вычесть столбец символов из числового столбца.

    Как исправить ошибку

    Способ исправить эту ошибку — использовать as.numeric() для преобразования столбца «возврат» в числовой перед выполнением вычитания:

    Мы смогли выполнить вычитание без каких-либо ошибок, потому что столбцы «продажи» и «возвраты» были числовыми.

    Дополнительные ресурсы

    В следующих руководствах объясняется, как устранять другие распространенные ошибки в R:

    Источник

    What does the error code «Error using plot Non-numeric data is not supported in ‘Line’» mean?

    Direct link to this question

    Direct link to this question

    0 Comments

    Answers (1)

    Direct link to this answer

    Direct link to this answer

    2 Comments

    Direct link to this comment

    Direct link to this comment

    Direct link to this comment

    Direct link to this comment

    See Also

    Categories

    Community Treasure Hunt

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

    An Error Occurred

    Unable to complete the action because of changes made to the page. Reload the page to see its updated state.

    Select a Web Site

    Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

    You can also select a web site from the following list:

    How to Get Best Site Performance

    Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

    Americas

    Europe

    • Belgium (English)
    • Denmark (English)
    • Deutschland (Deutsch)
    • España (Español)
    • Finland (English)
    • France (Français)
    • Ireland (English)
    • Italia (Italiano)
    • Luxembourg (English)
    • Netherlands (English)
    • Norway (English)
    • Österreich (Deutsch)
    • Portugal (English)
    • Sweden (English)
    • Switzerland
      • Deutsch
      • English
      • Français
    • United Kingdom (English)

    Asia Pacific

    • Australia (English)
    • India (English)
    • New Zealand (English)
    • 中国
      • 简体中文 Chinese
      • English
    • 日本 Japanese (日本語)
    • 한국 Korean (한국어)

    Accelerating the pace of engineering and science

    MathWorks is the leading developer of mathematical computing software for engineers and scientists.

    Источник

    wxMaxima Discussion

    Cross platform GUI for Maxima

    Forums

    plot2d: expression evaluates to non-numeric value everywhere in plotting range

    Is there some sequence of processing events which keeps this from plotting?

    (%i62) F(omega) := abs((%i * omega + 2E4)^2);

    (%i64) plot2d(F(omega), [omega, 0.01, 2E5] );
    plot2d: expression evaluates to non-numeric value everywhere in plotting range.
    plot2d: nothing to plot.
    (%o64) false

    plot2d(‘F(omega), [omega, 0.01, 2E5] );

    (note that F(omega) is quoted!) or

    plot2d(F, [omega, 0.01, 2E5] );

    I do not see the single quote to which you refer in my original post.

    It seems to me that the evaluation involves imaginary numbers even if the abs eliminates them at some point. When I played with the plot2d routine with functions that were exclusive of imaginary numbers it worked without problems.

    I did not see the single quote in your original post either. That’s why I put it there.

    I analyzed your problem and it boiled down to an error in the simplification method of the abs function. This is an error I detected in Version 12.04.0 of wxMaxima, which is not present in wxMaxima 0.8.3.

    If you type «F(omega)». You will see that the abs function is gone, and therefore plot2d tries to plot complex numbers.

    Putting the quote before «F(omega)» in the plot2d call or using the function name alone seems to suppress the erroneous simplification.

    I think this simplification error should be fixed in Maxima. I tried to post more details about this issue, but when I had this ready and pressed the «Post» button, sourceforge replied with a 403-error and the complete post was gone — no way to retrieve it.

    Источник

    Как исправить в Pandas: TypeError: нет числовых данных для построения

    Одна ошибка, с которой вы можете столкнуться при использовании pandas:

    Эта ошибка возникает, когда вы пытаетесь вывести значения из кадра данных pandas, но нет числовых значений для построения.

    Эта ошибка обычно возникает, когда вы думаете, что определенный столбец в DataFrame является числовым, но оказывается, что это другой тип данных.

    В следующем примере показано, как исправить эту ошибку на практике.

    Как воспроизвести ошибку

    Предположим, у нас есть следующие Pandas DataFrame:

    Теперь предположим, что мы пытаемся построить линейный график для трех переменных, которые, по нашему мнению, являются числовыми: очки, подборы и блоки:

    Мы получаем ошибку, потому что ни один из этих столбцов на самом деле не является числовым.

    Как исправить ошибку

    Мы можем использовать функцию dtypes , чтобы увидеть, какой тип данных имеет каждый столбец в нашем DataFrame:

    Мы видим, что ни один из столбцов в DataFrame не является числовым.

    Мы можем использовать функцию .astype() для преобразования определенных столбцов в числовые:

    Затем мы можем снова использовать функцию plot() :

    Мы можем успешно построить линейный график для очков, подборов и блоков, потому что каждая переменная теперь является числовой.

    Мы можем убедиться в этом, снова воспользовавшись функцией dtypes :

    Дополнительные ресурсы

    В следующих руководствах объясняется, как исправить другие распространенные ошибки в Python:

    Источник

    MaplePrimes

    • About
    • Help
    • Support
    • Register
    • Login

    I have a symbolic matrix (11×11) it is sparsely populated with components on the diagonal and 2 places either side.  When I have tried to calculate the [standar operations > nverse] (on a PC with Raid 0 and 4 Gb) Maple 12 stops running at 1883 Mb and complains about ‘memory allocation?

    Q1: how do I (inexperienced maple user) increase memory allocation?

    Q2: when I tried to run a 5×5 matrix as a test a matrix wasn’t returned, only a list of letters?

    like (1+x)(1+2x)^2=(1+x)(1+4x+4x^2)

    I think people can do that with Mathematica

    How to make Maple simplify expression like

    sqrt(  x^(2*a+2) )

    to x^(a+1), where x is assumed positive?

    The Maple’s simplify works only if the constant ‘a’ is already assigned to a number, otherwise it refuses to simplify it, even if I tell it assume(x>0).

    Ok,

    I have read the previous questions/answers regarding exporting a matrix to excel.  It is not working.

    I am running Maple 10 Standard, XP, and Excel 2003.  I have Maple as an Add-In on Excel.

    When I select my Matrix, right click, my options for export are:  MatLab, Tab Delimited, Matrix Market.  I chose Tab Delimited, but I get the same response from any choice, and an error box appears saying, «Error Fetching RTable ID».  Any suggestions?

    Thanks

    Hello,

    I get an error message when I evaluate this line:

    piecewise(And(And(abs(a)<infinity,a<>0),And(abs(b)<infinity,b<>0)),1,0);

    Error, (in PDEtools/sort_as_in) sort: 2nd argument must be a function that always returns true or false

    I don’t know what the problem is with this line. I have Maple 12.

    Have you got any idea?

    How do I convert a 2D expression constructed with MathMLEditor to a normal 1 D string? I know that example 6 from the maplet builder tutorial does this, but the result is often in a prefix notation. For example, if I enter «x-square + 1» as a 2D expression in the MathMLEditor, the result is `&plus;`(x^2,1). I would like to get more normal x^2+1. I have examined the code generated by the maplet builder and experimented with options in the MathMLEditor and MathML[Import], but to no avail. Is there a way to convert the prefix notation to the more normal infix?

    I’d like to have a question which gives information about a circle, and asks students to enter the correct equation.

    I don’t mind whether the equation is in the form (x-a)^2+(y-b)^2=r^2, or the expanded-out version.

    Here are some ways I’ve tried to do this, and why I’m not happy with them!

    How do I simplify an expression imported from the MathMlEditor? For example, the following code is taken  from Maple help. I have saved the result in the variable abc.

    with(Maplets[Elements]): maplet := Maplet([

        [BoxCell(«Enter and expression»)] , [MathMLEditor(‘reference’=’ME1’)],[Button(«Done»,Shutdown([ME1]))]  ]):

    result := Maplets[Display](maplet): abc «= MathML[Import](result[1]);

    Hello,

    I am trying to assign a value to a variable depending on whether fsolve does or does not give a solution.

    However, I cannot do it when there is no solution — fsolve returns unevaluated, and I cannot do almost anything with the unevaluated expression.

    The only way I can do it is the following:

    a:=fsolve(x+ln(x)=0,x=1..2);
    if (a=’fsolve(x+ln(x) = 0,x,1 .. 2)’) then solution:=’no’ else solution:=’yes’ end if;

    this equation does not have solutions, and returns the string to which I compare a.

    Hi all

    I have this integration , HOW can I solve

    the problem is in recent  file named  argent pdf

    please help me to solve it

    and give results please…….

    Hi all,

    I have the following ODE

    sorry , i forget the term so the question is :

    int ( q  * exp((1-b)^2* qz^2 / lambda[1] ) * exp((1-b)^2* q^2 / lambda[2])   /  ((1+b^2*q^2+b^2*qz^2)*(q^2+qz^2)) , qz= -infinity..infinity)  then w.r.t     q  from (0……infinity)

    after integration we want to minimize the results , the range is as (b=0..1), ( lambda[1])  =1….100000) ,   (lambda[2])  =1….100000)

    Hello,

    I need some help to figure out how to get maple to use distributive property and rules of exponents.

    >A:=R/(1+exp(-2(h-s))

    >a:=A/(exp(h-s))

    I would like to get the answer back in the form

    R/(exp(h-s)+exp(-(h-s))

    suggestions?

    Is it possible to add block comments in maple. Like, for example, /* …*/ in java.

    Thank you.

    I have this line in maple 11:

    polygonplot([[0,0],[1,1],[1,0],[0,0]],legend=»stuff»);

    and the legend doesn’t appear, is there a way to force maple to produce the legend (other than horribly right clicking and manually writing the legend in every time — I’m trying to make lots of polygon plots…)

    thanks

    Steve


    

    What does the error code «Error using plot Non-numeric data is not supported in ‘Line'» mean?

    Raymond Charoen

    • Direct link to this question

     ⋮ 

    • Direct link to this question

    For some reason I do not know why I am getting the error message below. I have provided my code below as well. Can someone help me figure out what this means and how I can plot the function y?

    Error using plot Non-numeric data is not supported in ‘Line’

    numerator=[10.469*10^3 -5.79264*10^8];

    denominator=[1 2.10858*10^4 5.23949*10^7];

    [r p k]=residue(numerator,denominator)

    syms s

    A=5.0218e+04/(s-(-1.8208e+04))+(-3.9749e+04)/(s-(-0.2878e+04))

    B=simplify(A)

    y=ilaplace(B)

    %Plot ilaplace output result

    t=0:0.000001:0.002;

    plot(t,y)


    Answers (1)

    Walter Roberson

    • Direct link to this answer

     ⋮ 

    • Direct link to this answer

    Your y is a symbolic expression involving the symbolic variable t. When you assign a numeric value to a symbolic variable that was used previously, the expressions that used the symbolic variable do not pick up the new numeric value. You need to subs() the numeric values for the symbolic variable.

    tn=0:0.000001:0.002;

    yn = double( subs(y, t, tn)) ;

    plot(tn, yn)

      2 Comments

    Raymond Charoen

    Direct link to this comment

     ⋮ 

    • Link

      Direct link to this comment

    I edited my code to reflect what you described, but when I try running my code, it says «Undefined function or variable ‘t’.» I have included my code below.

    numerator=[10.469*10^3 -5.79264*10^8];

    denominator=[1 2.10858*10^4 5.23949*10^7];

    [r p k]=residue(numerator,denominator)

    syms s

    A=5.0218e+04/(s-(-1.8208e+04))+(-3.9749e+04)/(s-(-0.2878e+04))

    B=simplify(A)

    y=ilaplace(B)

    %Plot ilaplace output result

    tn=0:0.000001:0.002;

    yn = double( subs(y, t, tn)) ;

    plot(tn,yn)

    Walter Roberson

    Direct link to this comment

     ⋮ 

    • Link

      Direct link to this comment

    yn = double( subs(y, symvar(y), tn)) ;

    Sign in to comment.

    See Also

    Categories

    Community Treasure Hunt

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

    Start Hunting!

    An Error Occurred

    Unable to complete the action because of changes made to the page. Reload the page to see its updated state.

    MathWorks - Domain Selector

    Понравилась статья? Поделить с друзьями:
  • Plotlink error 13
  • Plot error bars matplotlib
  • Ploom сброс ошибки
  • Ploom ошибка мигает
  • Ploom ошибка восклицательный знак