MATLAB QUESTIONS & EXPERT ANSWERS

Ask an expert. Trust the answer.
Your academic and career questions answered by verified experts.

Illustration
How to enable content preview for all subsystems programmatically?
Santiago - 2020-11-05

my  simulink model is upgraded from a previous version, in which there was no Content Preview option at that time. So I want to know how I can progra...

Plotting graph using scope
Mackenzie - 2020-11-05

I solved 2 degree dependant differential equations in  simulink and I got 2 equations as a funtion of time say X(t) and Y(t). Scope is plotting graph...

Configure Simulink to ask for new model version when saving the model
Peyton - 2020-11-05

Currently, Simulink can be configured to prompt for a comment each time a model is saved. I do not want it to increment the version number on its own,...

Output argument 'x' is not assigned on some execution paths.
Serenityruby - 2020-11-05

I wrote the following code in the Matlab  function in simulink and the error "Outut argument 'x' is not assigned on some execution paths" occurred. I...

Set simulation time and fixed step size for a Simulink model from the command line
Arianna - 2020-11-05

Hi! I have a simulink model that I need to simulate over a few different durations and with a fixed (but different) sampling time. So what I want to d...

Why do I get "Array indices must be positive integers or logical values" error when using "angle" function?
Rebekah - 2020-11-04

Why do I get "Array indices must be positive integers or logical values" error when using "angle" function?     >> z = 22+i >> a = angle(z) >> z = 2...

How to select non-sequential values in an array?
Quincy - 2020-11-04

I am trying to select the first, fifth, and ninth values of a 12x1 matrix. I am aware of how to reference sequential values like a(1:5,1) for the firs...

How to form an array with the input values?
Alfredo - 2020-11-04

%How would i form an array if i had 5 inputs like this of random number % displayed at the end. clc,clear x = 12; num = 0; for index = 1:5 y = input('...

how to call out specific cell in a matrix
Nicholassmith - 2020-11-04

If I have A=[1,2,3,4,5] B=[6,7,8,9,10] C=[1,2,3,4,5] If there a way to call out specific position at each matrix so that: Sum first value of A and fir...

Merging two arrays based on index arrays
Mauricio - 2020-11-04

I have the  arrays z_index = [2 3] and y_index = [4 1 5]. They store the indices of a main array x. z(z_index) = [1 3] and y(y_index) = [-2 4 2]. How...

Get a Free Consultation or a Sample Assignment Review!