- #1

Serena_hm

- 18

- 2

I'm working on a simple MATLAB program & I got stuck with something so I'll appreciate it if anyone can help

how can I write an imaginary value in a MATLAB program as input , for example, impedance Z = 100+10i

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

- MATLAB
- Thread starter Serena_hm
- Start date

- #1

Serena_hm

- 18

- 2

I'm working on a simple MATLAB program & I got stuck with something so I'll appreciate it if anyone can help

how can I write an imaginary value in a MATLAB program as input , for example, impedance Z = 100+10i

- #2

jedishrfu

Mentor

- 14,194

- 8,181

- #3

uart

Science Advisor

- 2,797

- 21

I'm working on a simple MATLAB program & I got stuck with something so I'll appreciate it if anyone can help

how can I write an imaginary value in a MATLAB program as input , for example, impedance Z = 100+10i

I'm pretty sure you can do it exactly as you've just typed.

Also, as long as variables "i" and "j" have not been redefined by your program, then use either:

Z = 100 + 10*i

or

Z = 100 + 10*j

If you're not sure about "i" being redefined you can always do "i = sqrt(-1)" first.

Last edited:

Share:

MATLAB
MATLAB-Scilab help forums?

- Last Post

- Replies
- 6

- Views
- 120

- Last Post

- Replies
- 4

- Views
- 219

- Last Post

- Replies
- 1

- Views
- 463

MATLAB
How to plot data in MATLAB?

- Last Post

- Replies
- 2

- Views
- 623

- Last Post

- Replies
- 2

- Views
- 788

- Replies
- 2

- Views
- 785

- Replies
- 1

- Views
- 455

- Replies
- 0

- Views
- 353

- Last Post

- Replies
- 10

- Views
- 1K

- Last Post

- Replies
- 1

- Views
- 738