MSc Aerospace Engineer. My skills about programming languages are C, Fortran, Maple and Matlab.

Professional Interests: Scientific Computing, Programming Languages, Aerospace Engineering

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

4 years ago

Solved

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:...

4 years ago

Solved

Weighted average

Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

4 years ago

Solved

radius of a spherical planet

you just measured its surface area, that is the input.

4 years ago

Solved

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 ...

4 years ago

Solved

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...

4 years ago

Solved

How to find the position of an element in a vector without using the find function

Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

4 years ago

Question

Matrix multiplication (best computational approach)

I have to make a coordinates transformation between two reference systems (axes). For it, three matrices (3x3) have to be multip...

4 years ago | 3 Answers | 0

Question

Hide maximize/minimize and close buttons for a figure window

I have a figure window and I want to remove the maximize/minimize and close buttons of it. I can not use any type of Java contai...

5 years ago | 1 Answers | 0

Question

Matlab ResizeFcn callback

I am worried about the look and feel of my GUI designed with Matlab. In concrete, I do not like how the figure window resizing i...

5 years ago | 3 Answers | 0

Question

Absolute and relative tolerance definitions

I am trying to understand the following Matlab definitions for RelTol and AbsTol parameters: RelTol — This tolerance is a m...

5 years ago | 2 Answers | 1

Question

Zooming in and out removing

I am using the rotate3d function to allow 3D rotation of a sphere through the mouse movement. However, when I rotate it, it zoom...

5 years ago | 3 Answers | 0

Question

Marker transparency

I would like to know if there is possible to set the transparency of a line marker to opaque in order to improve my animation: <...

5 years ago | 1 Answers | 0

Question

Animation improvement

I have written a code to create an animation: <http://www.mathworks.com/matlabcentral/answers/24642-invalid-object-handle-error/...

5 years ago | 1 Answers | 0

Answered

Invalid object handle error

Finally, I have found that there was a cla command line, which was the guilty of the error, in the main program before the surfa...

Invalid object handle error

Finally, I have found that there was a cla command line, which was the guilty of the error, in the main program before the surfa...

5 years ago | 0

Question

Invalid object handle error

I have the following code which is a graphic rendering of the movement of a satellite around the Earth. function ex global ...

5 years ago | 2 Answers | 0

Question

Updating a string inside a callback

The following code is a graphic rendering of the Earth globe spinning eastward. I have two push buttons, Spin and Stop. Both sha...

5 years ago | 2 Answers | 1

Question

Feedback for me

Hi community members. In the last weeks, I have found my questions are not getting answers. This makes me ask myself if perhaps ...

5 years ago | 3 Answers | 2

Answered

Wish-list for MATLAB Answer sections.

I would like to propose an "achievements" system similar to existing one for other Q&A sites (for example <http://stackoverflo...

Wish-list for MATLAB Answer sections.

I would like to propose an "achievements" system similar to existing one for other Q&A sites (for example <http://stackoverflo...

5 years ago | 0

Posted

Double icon for a tree structure [EDIT]

I have tried to add a jLabel component to a treenode but this does not work. I also have tried to modify the property ‘setIcon’ ...

5 years ago | 903 views

Posted

Double icon for a tree structure

I have a jtree structure. Each node has a checked/unchecked icon. I would like to able to show an additional icon (on the right ...

5 years ago | 903 views

Answered

Multicolumn legend

Here is my solution for a legend which has a 'SouthOutside' location (I have supposed that the axes graphic object has 'normaliz...

Multicolumn legend

Here is my solution for a legend which has a 'SouthOutside' location (I have supposed that the axes graphic object has 'normaliz...

5 years ago | 0

Question

Multicolumn legend

I would like to be able to create a legend to have a number of columns given (for default the legend function has an unique colu...

5 years ago | 2 Answers | 0

Question

FontSize for the image's legend

I have the following code: X = 0:pi/100:0.25*pi; Y1 = sin(X); Y2 = cos(X); Y3 = tan(X); fh = figure('toolba...

5 years ago | 2 Answers | 0

Question

Excel header title from html code

I have a GUI with an uitable whose header's title (variable "header") uses html code. I want to export the uitable data (include...

5 years ago | 1 Answers | 0

Question

Html code used along with Matlab

I have recently found that Matlab can use LaTeX character sequences. However, they only can be used by the functions text, title...

5 years ago | 2 Answers | 0

Question

Automatic choice of graphics format file for print command

I have the following code: X = 0:pi/100:2*pi; Y = sin(X); fh = figure('toolbar','none','menubar','none','Units','characte...

5 years ago | 1 Answers | 0

Question

Size and resolution from an image saved as a graphic format file

I have the following code to save a plot to a graphics format file. My problem is with the image obtained. If I save the image a...

5 years ago | 1 Answers | 0

Answered

Please Help in MATLAB .

The trigonometric function sin(x) can be approximated by the infinite series sin(x) = x^1/1! – x^3/3! + x^5/5! – x^7/7! + x^9/9!...

Please Help in MATLAB .

The trigonometric function sin(x) can be approximated by the infinite series sin(x) = x^1/1! – x^3/3! + x^5/5! – x^7/7! + x^9/9!...

5 years ago | 0