Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9145511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:31:56+00:00 2026-06-17T10:31:56+00:00

(MATLAB 2010 A Student version) Question: I am trying to solve 9 symbolic equations

  • 0

(MATLAB 2010 A Student version)

Question:
I am trying to solve 9 symbolic equations with 9 symbolic variables using “solve” command:

Problem:

N=2

V = sym(zeros(N+2+1)); % 5*5 symbolic matrix

syms D x; %D is diffusion constant

%Creating 3*3 non-zero symbolic entries
for row = 0:N
    for col = 0:N
        V(row+1, col+1) = sym(sprintf('V%d%d', row+1, col+1));
    end
end

count=1;
for m=0:N
    for n=0:N
        % Diffusion PDE written in Differential Transform domain
        eqn(count) = (m+1)*V(m+1+1,n+1)-D*(n+1)*(n+2)*V(m+1,n+2+1);  
        count=count+1;
    end
end

%length(eqn) is 9

eqn=eqn(1:7);      %as last 2 terms are [0 0] in eqn

Initial condition for PDE are given by Dirac Delta func (“delta(x)”). Thus, it is composed of 2 conditions (one for x=0 and one for x not equal to 0)

Thus, at x=0, it is “1” giving:

eqn(length(eqn)+1)=V(1,1)-V(2,1)+V(3,1)-1; % ini.condn

And at x NOT equal to 0, it is “0” giving: (does it make sense?)

eqn(length(eqn)+1)=(V(1,1)-V(2,1)+V(3,1))+(V(1,2)-V(2,2)+V(3,2))*x + (V(1,3)-     
V(2,3)+V(3,3))*x^2; %ini. condn

S=solve(eqn,'V11' ,'V12' ,'V13' ,'V21' ,'V22' ,'V23' ,'V31' ,'V32' ,'V33');

Answer: S.V11, S.V12, S.V13, S.V21 are functions of ‘z’. Rest are 0

I am getting ‘z’ in my solutions.

  1. What is ‘z’ in the solution? What’s the source of this?

  2. How to circumvent this and get meaningful solution?

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T10:31:57+00:00Added an answer on June 17, 2026 at 10:31 am

    The z parameter means for whatever value of z you substitute in, your set of solutions is valid for your equations.

    You have nine equations to find nine unknowns. However your sixth equation 2*V33=0 renders the following equation -2*D*V33=0 redundant…so you actually only have eight independent equations, hence the extra parameter z. I don’t know more about the details about your PDE to tell you why it isn’t well-posed, but basically you need another equation involving your nonzero variables if you expect a unique solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

version: Matlab 2009a I am generating a vector of size <1x116286> using randsrc() function.
Matlab Version : 7.8.0 I am reading a bmp file in matlab by using
I have the following problem: I have a 64 bit version of matlab 2011b.
Using matlab 2010 with NET.addAssembly(MyName), how do I check whether certain assembly MyName was
I am trying to write C++ programs and integrate it with MATLAB using mex
I followed this post http://neurochannels.blogspot.com/2010/05/how-to-run-r-code-in-matlab.html , to install R(D)Com server in order to call
In MATLAB I'm using a couple of java routines I've written to interface with
When Matlab is installed in its 64 bit version, it can use only 64
This question is related to How can I merge this data in MATLAB? how
Matlab code: % Performs Inner Filter Calculation using the UV absorbance spectrum. ex_abs=absint(exabsstart:exinc:exabsend,:); em_abs=absint(emabsstart:eminc:emabsend,:);

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.