Community Profile

Nasser M. Abbasi


3737 total contributions since 2009

Contact

Contributions in
View by

Responded


Re: problem with variables imput in function
In your code, you need to write ------------------------------------- function main % Compute the area under the curve from 0 t...

5 days ago | 245 views

Responded


Re: problem with variables imput in function
see https://www.mathworks.com/help/matlab/ref/integral.html Look at the example with "Parameterized Function". On how to pass e...

5 days ago | 245 views

Responded


Re: Learning Control Systems a hands on approach
Tim Wescott made some nice youtube for showing how basic PID controllers work in practice https://www.youtube.com/watch?v=drYO6...

5 days ago | 116 views

Responded


Re: I have posted a message at newsgroup, and I want to remove it,
In general, this is not possible. But see http://superuser.com/questions/89346/delete-usenet-message

5 days ago | 102 views

Responded


Re: Stop execution of an infinite loop from command line
see https://www.mathworks.com/help/matlab/ref/oncleanup.html "cleanupObj = onCleanup(cleanupFun) creates an object that, when ...

6 days ago | 187 views

Responded


Re: Stop execution of an infinite loop from command line
You can catch CTRL-C. Google "matlab catch ctrl-c". Once you catch it, you can shut down cleanly and in orderly manner. conti...

6 days ago | 187 views

Responded


Re: Getting error with equal sign
Is the above supposed to be Matlab code? For example, what is this: Are you trying to have space in variable name? And what i...

9 days ago | 216 views

Responded


Re: while loop
INITIAL_X = ...; INITIAL_Y = ...; keep_running = true; while keep_running end --Nasser

10 days ago | 206 views

Responded


Re: Absolute
You can't realy asl about absolute value of a vector. You can ask about its magnitude or length. Use the command norm(). https:...

13 days ago | 270 views

Responded


Re: text file into matrix
There is no need to convert the excel files to text files. You can read the excel files directly in Matlab. https://www.mathwo...

14 days ago | 138 views

Responded


Re: matlab project
hi Sana; If you mean quadratic formula to solve a*x^2+b*x+c=0, then try this: %-------------------------------- function [r1,r...

15 days ago | 179 views

Responded


Re: Euler's method
You want to use Euler method to numerically solve 3 partial differential equations? Strange assignment. The Euler method, assu...

18 days ago | 346 views

Responded


Re: Anticipating "Out of memory"
you could try To catch the out of memory error. Trap the error and at least this way handle the error as any other error one w...

18 days ago | 573 views

Responded


Re: Matlab question integral/derivate function y=f(x)
x can't be in seconds. The argument to sin and cos must be in radians. But 2*pi*x, if x is in seconds, do not come out to be in ...

18 days ago | 191 views

Responded


Re: How can i check in code if an image is indexed , gray, true color
try imfinfo "info = imfinfo(filename) returns a structure whose fields contain information about an image in a graphics file" ...

18 days ago | 200 views

Responded


Re: Euler's method
Euler method is used to solve differential equation. can;t read the above. try ode45, it is better than Euler. But if you ne...

18 days ago | 346 views

Responded


Re: 'hold on' does not work with a figure generated by step fuction
It works for me. I get 2 responses on one figure. Matlab 2016a. -------------------- sys1=tf([1 1]*5,[4 1]) sys2 = tf([1]*5,[4 ...

20 days ago | 264 views

Responded


Re: Load matrix from txt file
Yes, May be. But who knows, since you did not show the all the Matlab commands you used, we can all just guess like you did.

21 days ago | 256 views

Responded


Re: Help for boundary condition
I do not use pdepe much, but B.C in pdepe are little confusing. You need to subtract from the current value the actual B.C. valu...

22 days ago | 209 views

Responded


Re: While Loop
the "while" loop checks the variable at top of loop. So this variable has to exist before loop enters. One common way to do thi...

22 days ago | 326 views

Responded


Re: While Loop
I do not see "AbsoluteError" defined any where before the loop starts? <snip>

22 days ago | 326 views

Responded


Re: How to I make my expression a valid target for an assignment?
Try i.e use == and not =

24 days ago | 187 views

Responded


Re: solving an equation for x
eqn4 = tan(Delta_15.*(pi/180))==((2.*cot(X).*(M1^2.*sin(X).^2-1))./(2+M1.^2.*(gamma+cos(2.*X)))) Undefined function or variable...

24 days ago | 209 views

Responded


Re: Peculiar symbolic integral
Please do not top reply as makes it hard to follow thread I do not know. It depends on the symbolic engine and how it happens ...

25 days ago | 336 views

Responded


Re: Needs Help
some comments do not use "l" as index. That is terrible choice as it looks like "1" and can be confusing. use "i" or "j" or "n...

25 days ago | 283 views

Responded


Re: Peculiar symbolic integral
Are you sure you typed And not ? But any way, on Matlab 2016a is _correct_. Notice the above is just L*P*x - (P*x^2)/2 - (L^...

27 days ago | 336 views

Responded


Re: Syntax and Format
Matlab needs * for multiplication, not space. So try: -10*sin(10^-1*x) + (150 * sqrt(1/(x.^2 +100)))

27 days ago | 199 views

Responded


Re: Inputing a Vector and Sum
But the above can not make sense. You are saying But you never initialized Carga to anything before the loop. How does the eve...

28 days ago | 186 views

Responded


Re: Derivative of composed function
syms R(x) x f=R*x^2; diff(f,x) ---------------- ans(x) = 2*x*R(x) + x^2*diff(R(x), x) --Nasser

28 days ago | 195 views

Responded


Re: How do I convert .fig to .jpg?
try saveas and use the jpg format. https://www.mathworks.com/help/matlab/ref/saveas.html "saveas(fig,filename) saves the figure...

1 month ago | 271 views

Load more