Beantwortet
Help a noob implement MATLAB for a math iteration
Dear James here is the code according to your problem description: Ei = input('Enter initial value E[rad]: '); diff = 1;...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
Creating a column vector by multiplying the n-1 element by the corresponding element in another vector
Dear Hannah, here is the code as you require: F = [2;3;4;5;6]; M = [1;3;12;60;360]; new_M = zeros(length(M),1); fo...

mehr als 12 Jahre vor | 1

Beantwortet
How to put in Multiple Inputs and Display Result in a Table
Dear Kyle, here is the code which works as you described: a = 20; R = 10; k = 5; t_start = input('Enter minimum va...

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
How do I write a MATLAB code for A (in body) that doubles the elements that are greater than 6, and raises to the power of 2 the elements that are negative but greater than -2?
Here is code for your problem A=[5 10 -3 8 0; -1 12 15 20 -6]; dim = size(A); B = nan(dim(1), dim(2)); for i = 1:d...

mehr als 12 Jahre vor | 0

Beantwortet
How can I write the MATLAB code f(x) = x + 5 for 0<x<10?
There is a work around to this problem using symbols in MATLAB as follows: Suppose your x value lies over range from -100 to ...

mehr als 12 Jahre vor | 0

Beantwortet
Help in doing Matrix Multiplication
Mahesh you can do it using symbolic expression in MATLAB as following: A = [93 65 41 47 31 30 37 30 31 31 34 32 30 68 2 68 ...

mehr als 12 Jahre vor | 0

Beantwortet
Legend line are the same always
For matrices you can do like this a = rand(10); b = rand(20); c = rand(30); plot(a), hold on plot(b), hold on plot(...

mehr als 12 Jahre vor | 0

Beantwortet
External function calling inside another function
Here is a simple example of calling one function within another function: % Function 1 calling function 2 function ...

mehr als 12 Jahre vor | 0

Beantwortet
Display effects of sinus wave
You can see the frequecy is very high. So you need to use some smaller value time=0:1/8000:5; f=2; figure(300) Voltag...

mehr als 12 Jahre vor | 0

Frage


Iterative Fourier Transform Algorithm
Hi does anybody have a working MATLAB code for Iterative Fourier Transform Algorithm (IFTA) for design of beam splitting diffrac...

mehr als 12 Jahre vor | 1 Antwort | 0

1

Antwort