Risposto
How can I position my textbox exact position in my plot?
Yes, this is possible to do, but it is complicated. When you place graphics in a figure window, they are located based on the f...

quasi 5 anni fa | 3

| accettato

Risposto
Call function by path or namespace?
One way to approach this is to create a separate folder (that is not on the Matlab path) for your project. When you set the Mat...

quasi 5 anni fa | 0

Risposto
Difference between a vector and a bus signal
A bus signal is like a C++ structure. It can contain a variety of different signal types. A vector is an array, all elements a...

quasi 5 anni fa | 0

Risposto
How to call .m file from an other .m file?
Use the command run(filename) Any variables defined in the script are available in the Matlab workspace.

quasi 5 anni fa | 1

Risposto
How would you plot a graph which a ball then rolls down (say a y=x^2 graph)
Here is a model for the kinematics. clear data % I use data to save values in the time loop func = @(x) x.^2; % this is ...

quasi 5 anni fa | 0

Risposto
Von Karman Wind Turbulence Model
V is the true airspeed. V is a scalar, and is used to calculate the scalar components of the turbulence field. The documentati...

quasi 5 anni fa | 0

Risposto
How to find the angle between two quaternions?
I am more comfortable working with direction cosine matrices, so the way I would do this is to first convert the quaternions to ...

quasi 5 anni fa | 2

Risposto
Eliminate algebraic loop without using memory block
Here is an interesting article on algebraic loops and memory blocks. (pertaining to continuous time models) https://blogs.math...

quasi 5 anni fa | 0

Risposto
how to I add add a text in the Notes section (below the ppt slide)
on the VIEW tab, click on "notes page"

quasi 5 anni fa | 0

Risposto
calculate difference of euler angles between two dynamic moving objects
You have two objects described in a common reference frame. Lets call the objects A and B, and the frame is the I frame. So if...

quasi 5 anni fa | 1

| accettato

Risposto
Is it possible to only rename instances of a variable that appear in the code after the point at which you edit the variable selected? (shift+enter)
I use a tool called UltraEdit. It has that capability. In the find/replace tab there is a checkbox for "replace all is from t...

quasi 5 anni fa | 0

Risposto
program to find velocity of a UAV
This is a fun problem (aircraft design). I guess it's OK to give an answer on this, since it was homework 8 years ago! A quick...

quasi 5 anni fa | 0

Risposto
how can i calculate the energy of the pixel in the image??
Here are a couple possible references https://www.mathworks.com/matlabcentral/answers/63441-to-find-energy-of-each-pixel-from-a...

quasi 5 anni fa | 0

Risposto
simulink output size is not same as input size
The answer has to do with how you are saving variable "temp" from Simulink, but I cannot tell from the screenshot how this is be...

quasi 5 anni fa | 0

Risposto
Eulers method range issue question
In your code, you specify: R=[1:16]; h=0.2; ic=4; Then you call the function [t,y]=myEuler(f,R,ic,h) Inside myEuler, it co...

quasi 5 anni fa | 1

Risposto
How do you use Euler's Method to approximate the solution?
Euler's method approximates the area under a curve by using rectangular segments. The figure illustrates this process: You s...

quasi 5 anni fa | 0

| accettato

Risposto
Coorindate transforms to a satellite reference frame
In order to answer this question, we need a good definition of the coordinate frames involved. The only way to do this is to dr...

quasi 5 anni fa | 2

Risposto
How do I execute a function only one time in Simulink?
This is what rate transition blocks were created for. You might want to try this approach. Simply insert a rate transition blo...

quasi 5 anni fa | 1

Risposto
How to substract one number from many numbers?
W = x - 0.6 Or, if you want to actualy subtract x from 0.6 it would be: W = -x + 0.6

quasi 5 anni fa | 0

| accettato

Risposto
How do I export a vector to workspace in simulink?
It'a actually very easy. Simulink has a block for combining two signals, called a "mux" block. Simply combine the two signals ...

circa 5 anni fa | 0

Risposto
thermodynamic properties of water in simulink
Sounds like a perfect application for using a table look-up. For a function of two variables, simulink has a "2-D Lookup Table...

circa 5 anni fa | 0

Risposto
Index exceeds the number of array elements (1)
In the calculation of xdot I see subscripted references for x (up to 12) and u (up to 4). You should check the size of x and u ...

circa 5 anni fa | 0

| accettato

Risposto
how simulate PI ?
Yes, it's that easy. Did you try it? What are the results?

circa 5 anni fa | 1

Domanda


Is Walter Roberson a real person, or is he some kind of Matlab AI robot?
Just curious!

circa 5 anni fa | 8 risposte | 37

8

risposte

Risposto
solve 4th order ode in simulink
Your diagram looks reasonable to me and it could work, but its hard to tell from a screen shot - especially when the block title...

circa 5 anni fa | 1

Risposto
Finding the roots of equation by newton-raphson method?
I would approach the problem like this (this is a very simple implementation) Define an annonymous function for your equation: ...

circa 5 anni fa | 2

| accettato

Risposto
circle least square method
You don't need to use least squares to "fit" a circle to 3 points, because 3 points will uniquely define a single circle. See ...

oltre 5 anni fa | 0

Risposto
creating sine wave with variable frequency
The reason that the frequency is constant is that you are driving it with a linear function of time. If you plot the input sign...

oltre 5 anni fa | 1

| accettato

Risposto
Simulink (switch)
This problem may be complicated since you have 2 different definitions of x. However, based on what you asked for, this should w...

oltre 5 anni fa | 0

Risposto
Problem executing While loop
You need to move the statement k=k+1 outside of the if block. The first time you run the while loop, k has a value of 10, an...

oltre 5 anni fa | 1

Carica altro