A résolu


Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...

plus de 2 ans il y a

Réponse apportée
Normalize axis scale for annotations
The text function allows you to place annotations on a figure using axes coordinates. For example: hf = figure; x = -180:180; ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Create a boxchart with half-boxes
@Joel Ramadani, Since there is not already a built-in function for making "half" box plots, it might be beneficial to to write ...

plus de 2 ans il y a | 0

Réponse apportée
How can i create these two graphs in matlab , rough idea please
This is only half an answer, but you can reproduce the plot on the left using the following code: % Define data x = 0 : 0.01 :...

plus de 2 ans il y a | 0

Réponse apportée
Create new Figures with MATLAB live script
Hi @Ahmad, I recommend putting the following command: close all at the beginning of your MATLAB live script. This should rese...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
I have longitude data from -280 to 80, latitude data -90 to +90. I need to plot a global spatial map of Temperature data. (-180, -90, 180, 90). How to do it
Are you sure that your longitude data goes from -280 to 80 and not -180 to 80? Or perhaps from -180 to 180? There is no such thi...

plus de 2 ans il y a | 0

Réponse apportée
matlab online read excel sheet
Have you tried specifying the file type as a spreadsheet when using the readtable function? filename = 'Trial01_8deg (1).xlsx';...

plus de 2 ans il y a | 0

Réponse apportée
Stipple hatch on a Arctic map isn't showed correctly
Hi @Anna, Since your chart is shown using a stereographic projection, the stipple marks closest to the pole only appear like a ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
How can I import .dng files using compression scheme 52546?
Hi @Stephan Cevallos, I haven't worked with .dng images before, but I found a function called DNG2JPG on the MATLAB File Exchan...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 2 ans il y a | 0

Réponse apportée
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 ...

plus de 2 ans il y a | 1

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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, ...

plus de 2 ans il y a | 1

Réponse apportée
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...

plus de 2 ans il y a | 1

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

A résolu


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

plus de 2 ans il y a

Réponse apportée
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...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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 ...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

A résolu


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

plus de 2 ans il y a

A résolu


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

plus de 2 ans il y a

A résolu


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

plus de 2 ans il y a

A résolu


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

plus de 2 ans il y a

A résolu


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

plus de 2 ans il y a

A résolu


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

plus de 2 ans il y a

Charger plus