Risposto
Display video-data of a three-dimensional M-by-N-by-T array
You can use implay or vision.VideoPlayer A = rand(360,640,676,'single'); implay(A,60)

oltre 4 anni fa | 0

Risposto
How can i Change pixel color?
I = imread('red.jpg'); figure,subplot(121),imshow(I) th = 20; [x,y,~]=size(I); for ii=1:x for jj=1:y if((I(i...

oltre 4 anni fa | 1

| accettato

Risposto
How to insert arrows at the middle of each of the parallel lines
https://www.mathworks.com/matlabcentral/answers/92988-how-do-i-plot-a-line-that-has-an-arrow-on-the-end-of-it-in-2-d-and-3-d ht...

oltre 4 anni fa | 0

Risposto
I have 2 contours on the same plot and I want to differentiate them with colours so I can see the difference.
I = imread('rice.png'); figure,subplot(121), imcontour(I);ax = gca; colormap(ax,'cool') subplot(122); imcontour(I);ax = gca...

oltre 4 anni fa | 0

| accettato

Risposto
How can I copy figure to UIAxes?
a = uiaxes; b = getframe(gca); imshow(b.cdata,'Parent',b) There might be some quality issues

oltre 4 anni fa | 0

Risposto
Remove peak at 0 hz of fft
FFT of X FFT of X High pass filtered

oltre 4 anni fa | 0

Risposto
Excel file processing on GUIDE
https://www.mathworks.com/help/matlab/import_export/ways-to-import-spreadsheets.html

oltre 4 anni fa | 0

Risposto
How to detect the uitable on GUI
all(cellfun(@isempty, data(:))) error is in this line. data(:) is a double array on which you are trying to apply cellfun al...

oltre 4 anni fa | 0

Risposto
3D-Surface between 2 lines.
I have a layman approach for this (The dumb method) get co-ordinates by cursor export them to workspace save it in a vari...

oltre 4 anni fa | 0

Risposto
How to solve normalize issue for app designer?
https://www.mathworks.com/help/matlab/creating_guis/managing-resizable-apps-in-app-designer.html

oltre 4 anni fa | 0

| accettato

Risposto
Removing any previously draw roi on an image
findobj(ax,'Type','images.roi.Ellipse')

oltre 4 anni fa | 0

| accettato

Risposto
Inaccurate data in datatips of MATLAB plot
fig = figure; plot(1:3455297,1.026*ones(1,3455297)) X=datacursormode(fig); X.UpdateFcn = @myupdatefcn; where myupdatefcn ...

oltre 4 anni fa | 0

Risposto
Plotting 20-100 line with different distinguishable colors and shades on the same figure using a for loop
Try the following strategy cmp=distinguishable_colors(20); f=figure; ax = gca(f);ax.ColorOrder = cmp; hold on; A = rand(100...

oltre 4 anni fa | 0

Risposto
How can I recenter a map
Use fftshift for that purpose.

oltre 4 anni fa | 0

Risposto
Multiple plots in uitab/uitabgroup
The Dumb Way I found another way to do that (maybe it's not that efficient) Basically subplot will plot all data on figure whi...

oltre 4 anni fa | 0

Risposto
Transpose a structure with named fields ?
if all of them are scalar then this will work s_mod=structfun(@transpose,s,'UniformOutput',false)

oltre 4 anni fa | 1

| accettato

Risposto
App Designer: Calling variables created in other functions
The variable you are defining in function YpositionsEditFieldValueChanged(app, event) . . % y_converted . end and func...

oltre 4 anni fa | 0

Risposto
Dictionary / Map with array as key
EDIT: First Answer is replaced I donot understand why you dont want to go on characters. see the code below M = containers.Ma...

oltre 4 anni fa | 0

Risposto
how to get a license number
Here you go https://www.mathworks.com/academia/tah-support-program/eligibility.html

oltre 4 anni fa | 1

Risposto
Setting x axis in hh:mm format for plotting
The Dumb Method clc;clear;close all Time=linspace(16.8,17.8,230400)'; Field=linspace(50,145,230400)'; figure('units','no...

oltre 4 anni fa | 1

| accettato

Risposto
What does "Index exceeds the number of array elements (6)." mean?
You are using allepunkte as a for loop iterator. From Line 197 to Line 222 and you basically index two variables namely inside a...

oltre 4 anni fa | 0

| accettato

Risposto
How to make such a developed gui? Is it possible?
You can create them using patch and text with mousebutton callback. see the attached figure

oltre 4 anni fa | 1

Domanda


Plot Multiple Functions in a single call to fplot
I want to draw 2 concentric circles using fplot. Suppose that radius of 1st circle is 1 and 2nd circle is 0.8 then For Loop Met...

oltre 4 anni fa | 2 risposte | 0

2

risposte

Risposto
DOWNSAMPLING SEÑAL DE AUDIO
a medida que cambia su frecuencia de muestreo, alimente la nueva frecuencia de muestreo para que suene y no la anterior clear...

oltre 4 anni fa | 0

Risposto
Help to Improve this short code (create a rect given initial point, final point and slope)
function[y] = LineFuntion(pts,m,Pi,Pf) if abs(m) == Inf % vertical line y = linspace(P...

oltre 4 anni fa | 1

| accettato

Risposto
How to assign numeric value to radio button in gui?
https://www.mathworks.com/help/matlab/ref/matlab.ui.control.radiobutton-properties.html I usually use UserData but you can us...

oltre 4 anni fa | 0

| accettato

Risposto
How can I remove the excess object detected? Often my code finds more mouths and I want take only one, the one which is belower. Thanks.
Input the face to mouth and nose detection and not the complete image play with threshold value see how picutre on bottom l...

oltre 4 anni fa | 0

| accettato

Risposto
How to pull value of table for char array?
Because t(1,'Domain') is of type table. You need to convert that table output to string or cell. To do that type on Command wind...

oltre 4 anni fa | 0

Risposto
Different line style and color in cell
you can use for loop or you can use cellfun. data= {rand(1,15) rand(1,15) rand(1,15) rand(1,15)}; line_style = {'-','--',':','...

oltre 4 anni fa | 0

Risposto
copyobj for combining multiple plots - Parent and child input vectors must be equal length
Because figure 2 has multiple axes findobj(2,'type','axes') 4×1 Axes array: Axes Axes Axes Axes and you are ass...

oltre 4 anni fa | 1

| accettato

Carica altro