• Register
0 votes
34 views

Problem :

Looking for solution on following issue
error: the expression to the left of the equals sign is not a valid target for an assignment
6.9k points

1 Answer

0 votes

Solution :

To ressolve your issue you must use the double equal sign in the equation ==. 

Use the == operator to specify the equation e.g. sin(x) == 1 and solve it.

Also you must declare the symbolic variable t before attempting to solve the equation. The error free code should look like following:

syms t

solve(t*(t+0.09)*(t+484)*(t+10000) == 1, t)

36.1k points

Related questions

0 votes
1 answer 104 views
104 views
Problem : I am new to matlab and nntool. Currently I want to implement the neural network with the use of matlab using nntool. I am facing below error message. I am unable to understand the error message. **??? Insufficient number of outputs from right hand ... : Insufficient number of outputs from right hand side of equal sign to satisfy assignment.** How can I fix the above error message?
asked Feb 19 mphil 2.3k points
1 vote
1 answer 29 views
29 views
Problem: For the following code : E = [5,200]; Selected edge values X = imread('LENNA128.bmp'); N = length(X); Y = false(N+2); for k = 1:numel(E); Y(2:end-1,2:end-1) = X==E(k); Z = Y(1:end-2,2:end-1) | Y(3:end,2:end-1) | Y(2:end-1,3:end) ... )/2); end I get the error message: In an assignment A(:) = B, the number of elements in A and B must be the same Can anyone help me out to solve this problem.
asked Apr 9 LizzyM 6.1k points
0 votes
1 answer 105 views
105 views
Problem : Following is the script giving me the error I dont understand why it is giving me this The file starts with clear all filein=['Runs/']; Namein1=['AIC']; Nameout=['Nash']; It then does a lot of calculations and after that it tries to write the results to one ... I am not sure what is wrong here? What am I missing here? Please Note: I am running Matlab2013a on my MacBook Pro with OSX 10.8
asked Nov 21, 2019 peterlaw 6.9k points
0 votes
1 answer 154 views
154 views
Problem : I have some of the time/frequency data and I try to interpolate it using a interp2 function of Matlab. My data [F,T,data] is obtained from the different Matlab routine of a Matlab, spectrogram in case you are interested as below. [~,F,T,data] ... . Error in interp2>makegriddedinterp (line 228)     F = griddedInterpolant(varargin{:}); Error in interp2 (line 128) What is going wrong here?
asked Jan 22 jwilliam 3.9k points
0 votes
1 answer 55 views
55 views
Solutions: I am new in programming and my logic is not good, can anyone give the right solution? Write an expression that evaluates to true if and only if the C-string s equals the C-string "end"?
asked Feb 14 maddi86 5.4k points