viewSolid is not working

21 Ansichten (letzte 30 Tage)
Ravi Prakash
Ravi Prakash am 14 Okt. 2018
Kommentiert: Steven Lord am 18 Sep. 2025 um 13:41
Its not working in my Matlab app.Its showing invalid function.What can i do

Antworten (2)

Walter Roberson
Walter Roberson am 14 Okt. 2018
  2 Kommentare
Tansheed
Tansheed am 21 Dez. 2023
I did download it and moved it into the same file with the matlab files just as my lecturer instructed me to do. But it still shows invalid to me but in my peers comupters it succesfully executes the action
Tansheed
Tansheed am 21 Dez. 2023
Please tell us the possible reasons and how to slove them

Melden Sie sich an, um zu kommentieren.


ATHUL N
ATHUL N am 18 Sep. 2025 um 13:31
clc;
clear all;
syms x y z
value = int(int(6*x*y, z, 0, 1 + x + y), y, 0, sqrt(x),x,0,1
Error using sym/int (line 128)
Too many arguments.
viewSolid(z,0,1+x+y,y,0*x,sqrt(x),x,0,1);
  1 Kommentar
Steven Lord
Steven Lord am 18 Sep. 2025 um 13:41
This line of code (commented out so I can run other commands later in the comment) is not syntactically valid, as it has three ( and two ). I assume you ran it and then deleted one of the closing parentheses. Where was that closing parenthesis? Was it at the end of the line?
%{
value = int(int(6*x*y, z, 0, 1 + x + y), y, 0, sqrt(x),x,0,1
%}
If it was, the inner call to int looks fine. [Since z doesn't appear in 6*x*y, you're integrating a constant.]
syms x y z
innerIntegral = int(6*x*y, z, 0, 1 + x + y)
innerIntegral = 
If you're trying to perform a triple integral, the innermost one over z, the middle one over y, and the outermost over x, you're missing two closing parentheses and an extra int( call.
middleIntegral = int(innerIntegral, y, 0, sqrt(x))
middleIntegral = 
outerIntegral = int(middleIntegral, x, 0, 1)
outerIntegral = 
Or putting them all together in one line:
% Added vvvv v v
value = int(int(int(6*x*y, z, 0, 1 + x + y), y, 0, sqrt(x)),x,0,1)
value = 

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by