답변 있음
Put Y-Ticks above bars in stacked horizontal bar chart
One option would be to use the text function: y = [30 70; 20 80; 60 40]; b = barh(y, 'stacked','BarWidth',0.3); labels = {'So...

5개월 전 | 1

| 수락됨

답변 있음
Count percentage of certain number in struct
You can use nnz which tells you how many non-zeros are in an array. If your struct is named s then you can extract the data you ...

5개월 전 | 0

답변 있음
Editing csv data and convert it into a table
@Hicham, Here is another way that you could import your data, but keeping the variable names from the original file. filename ...

5개월 전 | 1

답변 있음
How to plot only some part of a vector based on the index of a knob in app designer
I have made an example of such an app using MATLAB Online (see the attached file). Just to walk you through the steps that I to...

5개월 전 | 0

| 수락됨

답변 있음
Use the function command to open a vff. file
Hi @parslee The File Exchange function (vff3D.m) in the link that you provided does not have very good documentation. Ideally, ...

5개월 전 | 1

답변 있음
how to solve and plot complex equation
A couple of things: pi needs to be lowercase and you need to use .*, ./, and .^ when doing element-wise operations on vectors or...

5개월 전 | 1

답변 있음
Making a table in matlab
% Example vector1 = [1 2 3 4 5 6 7 8 9]; vector2 = [1 2 3 4 5 6 7 8 9]; vector3 = [1 2 3 4 5 6 7 8 9]; % Combine into an a...

5개월 전 | 0

| 수락됨

문제를 풀었습니다


QWERTY coordinates
Given a lowercase letter or a digit as input, return the row where that letter appears on a standard U.S. QWERTY keyboard and it...

5개월 전

답변 있음
user defined function including a for loop taking vector input giving vector output
Is this what you are trying to do? x = 1:10; result = myfunc2(x) function [y2]=myfunc2(p) k=0; y2 = []; for t = 1:length...

5개월 전 | 1

| 수락됨

답변 있음
How to automate the plotting of numerical data contained in Excel files?
Here is one way that you can make the 10 graphs for each of the excel files: cartella = 'C:/.../' files_excel = dir(fullfile(c...

5개월 전 | 0

답변 있음
How to to create a dynamic scatter2 or scatter3 plot?
Hi @Muazma Ali, Assuming I understand your question correctly, you can follow these steps: 1. Right-click the Knob object in y...

5개월 전 | 0

답변 있음
How to make widths of all subplot and colorbars same?
Someone else asked a very similar question to this last night (see this link). Below is the answer that I provided them for se...

5개월 전 | 0

| 수락됨

답변 있음
How change space between subplot and include colobar out axis?
Hi @Guilherme Weber Sampaio de Melo, I would recommend you take a look at this MATLAB Answers discussion for some ideas about a...

5개월 전 | 0

답변 있음
How to have a user select a file from a directory and then matlab automatically go into that folder and pull multiple files with the same name
You can use the uigetdir function to prompt the user to select a file directory, and then you can use the dir function to get a ...

6개월 전 | 0

답변 있음
change tickness and font in table
Hi @aldo, 1) Unfortunately, no, I don't think it's possible to change the width of the vertical lines in a table. 2) It is pos...

6개월 전 | 0

문제를 풀었습니다


Side of an equilateral triangle
If an equilateral triangle has area A, then what is the length of each of its sides, x? <<https://i.imgur.com/jlZDHhq.png>> ...

6개월 전

문제를 풀었습니다


Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<https://imgur.com/x6hT6mm.png>> ...

6개월 전

문제를 풀었습니다


Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<https://imgur...

6개월 전

문제를 풀었습니다


Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return true if the triangle with sides a, b and c is right-...

6개월 전

문제를 풀었습니다


Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

6개월 전

문제를 풀었습니다


Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

6개월 전

답변 있음
Trying to manually set rgb values of cells equal to 0 on contourf figure
Hi @Christian, I don't know if you are still active, but there is an easy way to do this, as long as your data does not already...

6개월 전 | 0

답변 있음
Geoshow with MLT instead of longitude
This does not completely resolve your problem, but it may be helpful to get you started: % Load your data all_data = load('str...

6개월 전 | 0

| 수락됨

답변 있음
MATLAB figure with transparent background into Google Slides
This answer is an update to my previous comment with better instructions: If all you need to do is create a MATLAB figure with ...

6개월 전 | 0

| 수락됨

답변 있음
I can only publish half of my script
It may be an issue with your browser. I just tried publishing your code to a PDF using Microsoft Edge and it seems to have work...

6개월 전 | 0

답변 있음
Plot 2D vector in AppDesigner
I could not get the vplot function to work, but there is always quiver. For instance, if you add a button to your app and give ...

6개월 전 | 0

답변 있음
How can I return a value from an excel spreadsheet based on multiple user input variables?
Here is an example of how you can ask the user to select from a list of ingredients rather type the ingredient names manually: ...

6개월 전 | 0

문제를 풀었습니다


Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<https://i.imgur.com/jlZDHhq.png>> Image courtesy of <http://up...

6개월 전

문제를 풀었습니다


Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the second...

6개월 전

문제를 풀었습니다


Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

6개월 전

더 보기