Question

How to Uncover the Hidden Tick Covered by an Object?

The red rectangle covers the XTick at point 1 and that little black bar is not visible anymore (although it is visible for point...

mer än 7 år ago | 2 answers | 0

Question

Examples for Using _CreateFcn in GUIDE

I have some difficulties to use _CreateFcn in GUIDE (e.g., axes1_CreateFcn(hObject,eventdata,handles)). Could you recommend a li...

mer än 7 år ago | 0 answers | 0

Question

How to Assign an Axes Object to a struct?

It seems that MATLAB automatically assign h2Axes to struct G, not hAxes. How can I specifically assign hAxes to struct G? h...

mer än 7 år ago | 1 answer | 0

Question

How to Specify the Size of Rectangles in a figure?

I have drawn 3 rectangles and put them in a struct as follows. It occupies the whole figure1 area. How to make them so small tha...

mer än 7 år ago | 1 answer | 0

Question

How Assign a Plot to a Specific Axes?

I have drawn two Axes in GUIDE. How can I assign each of my plots to one of them? when I now run it, MATLAB just put both ...

mer än 7 år ago | 1 answer | 0

Question

How to Change the Min property of slider?

The code below works perfectly until I change Min from 0 to 1. Why cannot I set it 1? What is the solution? function test3(...

mer än 7 år ago | 1 answer | 0

Question

How to increment a value?

I want to make a Push Button that whenever is pressed, the Static Text goes up one level. For example, it is 1 and after button ...

mer än 7 år ago | 0 answers | 0

Question

How to Turn On and Off Legend of Graphs Selectively?

I have three lines but I only want a legend for two of them. How can I suppress the legend for the third line?

mer än 7 år ago | 1 answer | 0

Question

How to Display Grid Lines with Specific Distance from One Another?

I want grid lines for a plot but MATLAB automatically define the number of grid lines. Is there any way to manually define the n...

mer än 7 år ago | 1 answer | 0

Question

Error while using dot notation

I execute the following code but I get the error "Insufficient number of outputs from right hand side of equal sign to satisfy a...

mer än 7 år ago | 1 answer | 0

Question

How to Call the Name of a Loaded File?

I load B which is a struct as follows: A = load( ‘B.mat’ ); How can I later access the name of file B from A? When I call ...

mer än 7 år ago | 1 answer | 0

Question

How to use FOR loops to shorten IF statements?

I have a if structure with 19 elseif parts. Is there any way to use a for loop to write elseif once and control it by a for loop...

mer än 7 år ago | 1 answer | 0

Question

How to find the number of ones in each column of a logical matrix?

How to find the number of ones in each column of a logical matrix?

mer än 7 år ago | 1 answer | 0

Question

How to store rectangles properly?

I want to make a series of rectangles using rectangle command. What is the best way to store all of these rectangles?

mer än 7 år ago | 1 answer | 0

Question

What does it mean when it is said that a struct is a 2-by-3 struct?

What does it mean when it is said that a struct is a 2-by-3 struct?

mer än 7 år ago | 2 answers | 0

Question

How to call a certain part of a matrix which is a value of a field of a structure?

What I want to do is to access the first column and then the second column of a 5-by-7 matrix which is the value of a field name...

mer än 7 år ago | 1 answer | 0

Question

How to derive a variable name from a variable?

How to derive a variable name from a variable? A = [5 6 7 8]; B = ‘A’; A(1) % this works and return the first element o...

mer än 7 år ago | 3 answers | 0

Question

Calling a Field of a Struct by a Pre-defined String Variable

I want to call a field of a struct by a string variable named like that field, but I receive the error “Reference to non-existen...

mer än 7 år ago | 1 answer | 0

Question

How to Load Two MAT Files with Variables of Similar Names?

I have a MAT File of variables A, B, and C. I have another MAT File with variables A, B, and C. Although the names of variables ...

mer än 7 år ago | 1 answer | 0

Question

How to rotate points on 2D coordinate systems

I have some points on a 2D Cartesian coordinate system. I want to rotate all these points 90 degrees counterclockwise. What is t...

mer än 7 år ago | 4 answers | 0

Question

How to Add an Alphanumeric Character to a Shape?

How can I add the number “1” in the middle of the circle below? r = rectangle('Position', [2 3 5 5], 'Curvature', 1, 'FaceCol...

mer än 7 år ago | 1 answer | 0

Question

Why can the coordinates in "stem3" be defined only as vectors not matrices?

Why can the coordinates in "stem3" be defined only as vectors not matrices?

mer än 7 år ago | 1 answer | 0

Question

Showing points on a graph

I want to show three points on a 3D graph. x, y, and z show the x, y, and z coordinates of point1, point2, and point3, respectiv...

mer än 7 år ago | 1 answer | 0

Question

for loop forward and backward

How to make the loop below count increasingly (1,2,3,…) when I press the mouse button and count decreasingly (4,3,2,…) when if p...

mer än 7 år ago | 1 answer | 0

Answered

Creating a Matrix from Variables Window

What if my content is so big (e.g., a 1000-by-2000 matrix copied form Excel to Variables) and cannot just type it in like above?...

Creating a Matrix from Variables Window

What if my content is so big (e.g., a 1000-by-2000 matrix copied form Excel to Variables) and cannot just type it in like above?...

mer än 7 år ago | 0

Question

Creating a Matrix from Variables Window

I create the variable G = []; in the Editor and then click on its name on Workspace and start typing in a 5 by 10 matrix there. ...

mer än 7 år ago | 2 answers | 0

Answered

separate matrices out of struct

Thanks, man! You not just answered it, but perfected the question too!

separate matrices out of struct

Thanks, man! You not just answered it, but perfected the question too!

mer än 7 år ago | 0

Question

separate matrices out of struct

I have a struct having matrices of B1, B2, and B3. I want to make three separate matrices out of them available in the Workspace...

mer än 7 år ago | 2 answers | 0

Question

Loading a Variable with its Original Format

B is double. When I load B, this function put it in a struct format. How can I load B with double format? C = load( ‘A.mat’, ...

mer än 7 år ago | 1 answer | 0

Question

How to Convert a Logical Vector to a Character Vector?

What is the shortest way to convert a logical vector to a character vector with two arbitrary names for true and false values? ...

ungefär 8 år ago | 2 answers | 1