Feeds
已解决
Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...
9 years 前
已解决
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
9 years 前
已解决
Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
9 years 前
已解决
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
9 years 前
已解决
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...
9 years 前
已解决
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
9 years 前
已解决
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
9 years 前
已回答
How to include a filtered signal in ODE 45 solver
Just a thought but you could smooth how ever you like prior to the ODE and create a lookup table to replace the square function ...
How to include a filtered signal in ODE 45 solver
Just a thought but you could smooth how ever you like prior to the ODE and create a lookup table to replace the square function ...
9 years 前 | 0
已回答
How to compile a simulink model for 3d surface plot, which can find z for user defined (x,y)
Hey Have you tried this: http://www.mathworks.com/help/simulink/slref/2dlookuptable.html Naty
How to compile a simulink model for 3d surface plot, which can find z for user defined (x,y)
Hey Have you tried this: http://www.mathworks.com/help/simulink/slref/2dlookuptable.html Naty
9 years 前 | 0
| 已接受
已回答
Simulink is running very slow in a high end laptop
Have you tried using simulink accelerated mode? http://www.mathworks.com/help/simulink/ug/choosing-a-simulation-mode.html
Simulink is running very slow in a high end laptop
Have you tried using simulink accelerated mode? http://www.mathworks.com/help/simulink/ug/choosing-a-simulation-mode.html
9 years 前 | 0
已回答
How to put the parameter of a controller as an increasing variable, so that after each simulation it increases itself and simulates automatically. I do not want to enter a value each single time manually and wait for the simulation.
The parameter you want to test should be taken from the workspace, then you could run the simulation in a for loop in a matlab c...
How to put the parameter of a controller as an increasing variable, so that after each simulation it increases itself and simulates automatically. I do not want to enter a value each single time manually and wait for the simulation.
The parameter you want to test should be taken from the workspace, then you could run the simulation in a for loop in a matlab c...
9 years 前 | 1
已回答
Accessing all values of a certain field inside a structure array in Simulink
Amm, I didn't get an error with what you mentioned but maybe this will work: test_struct(:).B
Accessing all values of a certain field inside a structure array in Simulink
Amm, I didn't get an error with what you mentioned but maybe this will work: test_struct(:).B
9 years 前 | 0
已回答
Best method for saving figures at given location, in given format etc. ?
You might want to use the get function to get your screen size. scrsz = get(0,'ScreenSize'); fig_handle=figure('Positio...
Best method for saving figures at given location, in given format etc. ?
You might want to use the get function to get your screen size. scrsz = get(0,'ScreenSize'); fig_handle=figure('Positio...
9 years 前 | 0
提问
GUI drag and drop listboxes
Hey, I have got a listbox with lots of strings that represent different parameters. I would like to drag them to different li...
9 years 前 | 1 个回答 | 0
1
个回答已回答
How do I delete a series of elements from a vector?
You'll need to find the indexes which you want to keep. After you got the indexes just type c= A(desired indexes). e.g c= A...
How do I delete a series of elements from a vector?
You'll need to find the indexes which you want to keep. After you got the indexes just type c= A(desired indexes). e.g c= A...
9 years 前 | 0
已回答
How can I add figures from a looping script in the report generator toolbox?
Hey This is a bit of a workaround. Ran a for loop from i=1:1:length(findobj('Type','figure')); Inside the for loop i used t...
How can I add figures from a looping script in the report generator toolbox?
Hey This is a bit of a workaround. Ran a for loop from i=1:1:length(findobj('Type','figure')); Inside the for loop i used t...
9 years 前 | 0
| 已接受
提问
BytePack command in Matlab
Hey I am using the bytepack command in Simulink. I was wondering if there in an alterntive for the same command in Matlab. coul...
9 years 前 | 0 个回答 | 0
0
个回答已回答
how to do this array problem matlab
Hey HIGH If I understand you correctly you want to sum the square value of a vector. Check the functions sum and sqrt http:/...
how to do this array problem matlab
Hey HIGH If I understand you correctly you want to sum the square value of a vector. Check the functions sum and sqrt http:/...
9 years 前 | 0
| 已接受
提问
Plotting 4d data with matrices.
Hey all, I am trying to plot a 4d plot( meaning 3 axis and 1 color) , I have looked at scatter3, mesh ,plot4d etc. but i was h...
11 years 前 | 3 个回答 | 0
3
个回答已回答
Sending a Function Handle to a Function
So i can't send a string, must i send a function? That's where the error occurs: function ret = bl_poincare_map(poin_sec,c...
Sending a Function Handle to a Function
So i can't send a string, must i send a function? That's where the error occurs: function ret = bl_poincare_map(poin_sec,c...
11 years 前 | 0
提问
Sending a Function Handle to a Function
Hey all I am trying to a send a function handle to a different function. Inside the function handle i have a got a variable wh...
11 years 前 | 2 个回答 | 0
2
个回答已回答
While loop doesn't continue looping!
Use continue instead of break. But i don't think you really need all those breaks or continues. Try without them. and in th...
While loop doesn't continue looping!
Use continue instead of break. But i don't think you really need all those breaks or continues. Try without them. and in th...
11 years 前 | 0
提问
Index exceeds matrix dimensions but only in parfor and not for
hey I am new to parallel computing. I have been trying to get my simulation run using parfor, however when i am using parfor i ...
11 years 前 | 3 个回答 | 3
3
个回答提问
Take a Scatter graph and fill the gaps between the dots.
Hello I have got a 2D matrices X,Y(100x150).each (i,j) at x corresponds with (i,j) at y. I have used scatter to place the point...
12 years 前 | 1 个回答 | 0
1
个回答提问
Legend Choose Scatter and not plot
hey all My problem is that in my code i first use the scatter command and then i use the plot cmd . when i ask for the matlab t...
12 years 前 | 1 个回答 | 0
1
个回答提问
Fitting Functions
I have a Vector of Data. and i want to do a fitting to the Vector. but I want the fit to be in the shape of: A/x+B/x^2+C/x^3....
13 years 前 | 3 个回答 | 0