74 Answered Questions for the topic MATLAB

Matlab Random Simulink

05/19/19

Uniform Random Number blocks in my simulation model?

I've used 2 Uniform Random Number blocks in my simulation model, but every time I run the program they generate last numbers (exactly the same). I need to test the model with new generated numbers.... more

05/19/19

Is it possible to change decimation precision of Scope in Matlab?

I'm saving the data of the scope while simulating into the workspace. I've seen that the data has four decimal places, e.g. 1.4617. Now in my case I need a higher precision. Is it possibly to... more

Numerical Integration of area defined by set of coordinates?

Suppose you have a general shape defined by a bunch of coordinate points that form something that looks like a circle, ellipse, or general closed curve - how do you find the area bounded by these... more

04/23/19

creating random numbers that favor smaller numbers?

say i generated a set of random numbers and put them into an array, (pre-sorted for simplicity) i'll use javascript to show the math: var vals = new... more

04/23/19

Derivative of sigmoid?

I'm creating a neural network using the backpropagation technique for learning. I understand we need to find the derivative of the activation function used. I'm using the standard sigmoid... more

Adjust White balance?

I'm looking at some image processing algorithms for white balance manipulations. Seems like a previous Stackoverflow [question](https://stackoverflow.com/questions/1175393/white-balance-algorithm)... more

08/31/17

Game Theory in matlab

How to solve game theory matrix 2x2 by matlab

07/08/17

Deleted MATLAB files plzzz help

I am doing m tech and I have to submit my thesis and MATLAB files oh till tomorrow and my all MATLAB files are deleted pllzzzzzz help from where can I get those files back   Plzzz help  From... more

Linear Programming Problem

A chemical plant makes three major products on a weekly basis. Each of these products requires a certain quantity of raw chemical and different production times, and yields different profits. The... more
Matlab

10/11/16

rewrite the following pseudocode using proper indentation

rewrite the following pseudocode using proper indentation Do i=i+1 IF z>50EXIT x=x+5 IF x>5 THEN y=x ELSE y=0 ENDIF z=x+y ENDDO
Matlab

10/10/16

what is the answer of question

The cosine function can be evaluated by the following infinite series: cosx=1-(x^2)/2!+(x^4)/4!-(x^6)/6!+....Write a MATLAB code to implement this formula in order to compute the value of cosx up... more
Matlab

09/21/16

Writing matlab scripts

Write a Matlab script file that uses the Newton-Raphson method to find an approxi-mation to the third positive root of sin(x) + cos(4x) − 0.3. You should:• use an initial condition of x being 3.5;•... more

Please help with the following mechanical measurements homework question.

The signal, v(t) = 5cos(2πt) is measured with the following sampling periods of, 3/4 second, 1/2second, 1/8 second, and 1/30 second. Plot 10 seconds of each waveform using the “stairs()”command in... more
Matlab

03/10/16

matlab code

I miss understand the this code   clear all;Ts=1e-2; t=0:Ts:10; x1 = exp(-13/5.*t);h1=3*exp(-2*t)+2*exp(-3*t);y1=conv(x1,h1)*Ts;t2=0:Ts:20;figure;plot(t2,y1);grid; ylabel('y1');... more

01/16/15

Need help with matlab coding

I need help with writing a matlab program. Its based on a mechanical engineering topic related to mass and springs.   If anybody is interested to do an online tutorial, please respond !
Matlab

11/16/14

Matlab, re-writing programming

Hi, I have been given this programming for calculating time. However I would like to write this out in a far more straight forward, simpler form. Is it possible for anyone to show me how I can do... more

09/21/14

how to assign voltage to circle boundaries in matlab

I have created a circle in a square grid using below code, Now i need to assign 1 volt to all the boundary of the circle. could you help me with that code? radius2 = 1;x = midrow;y =... more

06/27/14

I need to calculate derivative of a function whose parameters are functions of other parameters using MATLAB or Maple

I'm doing some mathematical calculation of some symbolic math that includes multiplication and differentiation of some matrices.Some of the parameters in my calculations are functions of time. for... more
Matlab

04/29/14

what does the following program do? for k=1:31 disp(datestr(now,k)) end

what does the following program do?   for k=1:31     disp(datestr(now,k)) end
Matlab

11/30/13

Array in matlab

I'm trying to set up a matrix of variable length with two columns into which I can store the results of a for loop. The length will be determined by the number of iterations of the loop.

Hey, I have this question for Matlab, and I am completely lost on what I need to do .

Chemical, environmental, and nuclear engineers must be able to predict the changes in chemical concen- tration in a reaction. A model used for many single reactant process isRate of change of... more
Matlab

09/01/13

How to find the answer of maximum and minimum height in a range using for loop, if else and find function in Matlab language

How to find the answer of maximum and minimum height in a range using for loop, if else and find function in Matlab language   The range is x = [1 2 5 0 2 3] that should give the highest jump... more
Matlab

12/12/12

matlab question

My program is never done running and I can't quite figure out why. Here's the question: for every n = 2, 3, 4, 5, ....100 compute a value of arcsin(1/n) by applying Newton-Raphson Method to the... more

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.