Réponse apportée
Delete internal faces from 3D plot
You could manually remove the faces as such: Coords = [ 0 2 0 0 2 1 0 3 0 0 3 1 ...

plus de 4 ans il y a | 0

Réponse apportée
use of parentheses confusion
In the first line, 10 is added to the 1 so you end up with 11:15 %This creates an array starting from 11 and ending at 15 at i...

plus de 4 ans il y a | 2

| A accepté

Réponse apportée
wanna Plot this one its inductor voltage graph in my case
If you want to create that plot: y=[1 2 0 -1 1 2 0 0 2 3 1 0 0]; x=[0 1 1 2 2 3 3 4 4 5 5 6 7]; figure plot(x,y) ylim([-3 3...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
remove grid lines completely
After opening the figure, you can type the following assuming there is only one axes on the figure: grid off or grid(gca,'off...

plus de 4 ans il y a | 0

Réponse apportée
Image Region filter how to only get mask for one area?
I would check Exclude Border If you click the dropdown box under Export>Export Function function [BW_out,properties] = fil...

plus de 4 ans il y a | 0

Réponse apportée
Not a map axes. How to plot quiver and geobasemap in one figure?
geoplot([44.392186 44.393524],[8.930812 8.931615],'w:') geolimits([44.390 44.396],[8.928 8.934]) geobasemap satellite load('F...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
how to grab text from figure's suptitle and subplot titles
subplot(2,2,1) plot(1:10,rand(1,10)) title('pick me'); subplot(2,2,2) plot(1:10,rand(1,10)) title('not me'); subplot(2,2...

plus de 4 ans il y a | 2

Réponse apportée
Help making my code more efficient
Below I created a nested loop as requested. If the comments do not provide enough guidance, please let me know. x = 2590; fo...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Need help with looping data files in
HeaderRowCount = 7; trials = 3; idx = setdiff(0:10:150,[30:10:40 60:10:90 130:10:140]); for i = 1:length(idx) for R ...

plus de 4 ans il y a | 0

Réponse apportée
How to change one pixel only in plain image?
I = imread('peppers.png'); imshow(I) size(I) I(45,45,1) = 255; % red I(45,45,2) = 255; % green I(45,45,3) = 255; % blue...

plus de 4 ans il y a | 0

Réponse apportée
Import data from text file
I used the import data button on the toolstrip to import the text file. Then I generated the function below. DataChan1 = import...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
Matlab App Designer Clickable Image only clickable once
I would use strcmp to compare image source just in case there is an error with the character arrays being different sizes (e.g. ...

plus de 4 ans il y a | 0

Réponse apportée
Can you code A 3D Building in MATLAB?
This is the approach I would take. %preallocate m = zeros(100,100,100); m(1,21:80,21:80) = ones(60); angle = 0.25:0.25:360...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Trying to index an array and extract its values with a for loop.
Below are two possible ways. If data is in table, t=table; t.column1 = [1 2 3 4 0 3 4 2 3 4 0 3 1]'; t.column2 = [8 7 9 0 ...

plus de 4 ans il y a | 0

Réponse apportée
How do you plot a set of 2D images diagonally?
Is this what you are looking for? x = 1:14;%rand(1,14); z = 1:14;%rand(1,14); y = 1:14;%rand(1,14); y1 = 7; imgset = ra...

plus de 4 ans il y a | 0

Réponse apportée
Error Using cellfun for a Matrix
a = rand(81,81); n = 3*ones(1,27); a_d = mat2cell(a,n,n); for i = 1:27 for j = 1:27 G_x = @(x) sum((x-a_d{i,j})./(x+a_d...

plus de 4 ans il y a | 1

Réponse apportée
Fit ellipse to objects in image
I would suggest using regionprops. Steve Eddins walks through the process on his blog. https://blogs.mathworks.com/steve/2015/0...

plus de 4 ans il y a | 2

| A accepté

Réponse apportée
Different outputs when using { : }
When you used the braces the way you did, it turned the string array into a character array. I would look at the following: ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Adding and display in AppDesigner GUI
How do you want the text to be displayed? If you want it to display 'x2 value, 1', you can do the following: function Button_5...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
Vectors must be same lenght
AB=200; BC=480; CD=480; DQ=450; AQ=480; FB=100; DE=600; AF=300; ED=600; DC=CD; x=AQ; y=DQ; a2=CD; a3=BC; a4=AB; ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
saving files in .mat in another folder
I am going to assume that you are reading image files and then trying to save them in another folder as mat files. %Select fold...

plus de 4 ans il y a | 0

Réponse apportée
How to create a big 3D matrix from different blocks with the same volume?
n1=100; % dimension of main matrix n2=16; % dimension of blocks m=zeros(n1,n1,n1); %Null matrix of dimension 100x100x100 m1=o...

plus de 4 ans il y a | 0

Réponse apportée
How to find out standard deviation of a matrix when there is a lot of NaN values?
You can ignore NaN values with the std function by adding 'omitnan' as an input. A = rand(9,9); A(3,4) = NaN; A(7,8) = NaN;...

presque 5 ans il y a | 2

| A accepté

Réponse apportée
How to register and average images together from a mat file
Here is some informaiton on image registration: https://www.mathworks.com/discovery/image-registration.html https://www.ma...

presque 5 ans il y a | 2

Réponse apportée
Matlab plot not lining up correctly with x-axis
You need to change the number of ticks along the x axis. %Plotting% Months_x={'Jan'; 'Feb'; 'Mar'; 'Apr'; 'May'; 'Jun'; 'Jul';...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
How do I rotate the view of a cylinder created using surf plot?
Here is another method, if you want to rotate the surf plot. figure [x,y,z] = cylinder(2,20); obj = surf(x,y,80*z); xlim([-1...

presque 5 ans il y a | 1

Réponse apportée
Each data point plots as individual points not as one set of many points
obj = VideoReader('VidName.avi') %same name as file you create in step 1 video = read(obj); for i=1:150 %number of frames of t...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
Create an array containing numeric and symbolic variables
syms t1 t2 d; DH = {0 0.4 0 t1 %i = 1 0 0.1 -90 t2 %i = 2 0 d 90 0} %i = 3 isnumeric(DH{1,1}) isnumeri...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Matlab code wont run. Matrix dimensions must agree error
I did not come across that issue when I defined omega as omega = (pi*beta/T)*cos((2*t - T)*pi/(2*T)); before running that line. ...

presque 5 ans il y a | 0

Réponse apportée
i want to delete cells that contain 0's
Assuming the values in cell array are numeric: cellarray = {34 , 23, 4, 123, 0 ,423, 4312;34 , 23, 4, 123, 5 ,423, 4312;34 , 0,...

presque 5 ans il y a | 0

| A accepté

Charger plus