Réponse apportée
I have three different images and I want to take a small cross-section from all the three and then plot it on the same graph in order to make a comparison. Can anyone help me?
im1 = imresize(imread('cameraman.tif'),[600 600]); figure,imshow(im1),axis on im1_seg = im1(:,330:353); figure,imshow(im1_seg...

presque 6 ans il y a | 0

Réponse apportée
Saving Multiple Values in a single time step in Simulink.
store all the values you have in for loop in an array and save that array using to workspace block see the example project

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Updating the histogram in a correlation matrix after creating the matrix plot
[r,p,h] = corrplot(Mat_All_1_4_5, 'varNames', VariableNames);% change here pass handle output h contains handles to plotted gra...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
How to join two points, on a 'map', created with the command 'ginput'?
one way to do that is using line and then getting the frame harta = imread('harta.jpg'); imshow(harta) [xA,yA]=ginput(1); [x...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
Plot some part of a correlation matrix
Access all objects with tag 'PlotMatrixScatterAx' using findobj ax = findobj(fh,'Tag','PlotMatrixScatterAx'); Run for loop for...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
how to control the length of indexed array element?
you cannot feed 0 as array index it will give error for loop runs from 0 to length of m which will make it run for 5 iterations...

presque 6 ans il y a | 0

Réponse apportée
How do I change the properties of a series od data in a plot with multiple series of data in it ?
Open the figure f =openfig('W_1e-6_5e-9.fig'); access its axis either by gca or by figure handle f axes = gca; Axes has thre...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Uitable rowname with special characters - inputdlg
https://stackoverflow.com/questions/41632071/tex-interpreter-in-matlab-uitable https://ch.mathworks.com/matlabcentral/fileexcha...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Read *.mat files inside a zip file without extracting(/unzipping) the zip file
https://ch.mathworks.com/matlabcentral/answers/10945-read-files-in-zip-file-without-unzipping#answer_15061 https://ch.mathworks...

presque 6 ans il y a | 2

| A accepté

Réponse apportée
Adding a new value to an array within a loop
because you are passing m to t1_0 and value of m is constant through out the for loop. The index of your for loop is i in this c...

presque 6 ans il y a | 1

Réponse apportée
Ticks on second y-axis
Either use plotyy or yyaxis I am demonstrating how to do it with plotyy z=plotyy(x,y1,x,y2,@bar,@bar); % plot, save axes ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Transparency of Image overlay on Google Earth (kmz file)
Use export_fig to save transparent png

presque 6 ans il y a | 1

Réponse apportée
How to scale values in y-axis to be 1-100%?
clear x = [1, 2, 3, 4, 5, 6, 7, 8, 9]; y = [5, 50, 200, 180, 100, 60, 53, 0, 2]; figure ax = axes; plot(x,y); set(ax, '...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
Variable names whch include numerics
I know the most inefficient way to do that. (eval) varNames1 = rand(20,1); varNames2 = rand(20,1); varNames3 = rand(20,1); f...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
After the FFT(Frequency-Amplitude) of the seismic wave(Time-Acceleration), I want to reconstruct the seismic wave(Time-Acceleration) by IFFT again.
COM=ifft(Y,NFFT)*n;% divide in fft, multiply in ifft figure; COMreal = COM(1:length(Time)); % pick the data equal to actual da...

presque 6 ans il y a | 0

Réponse apportée
How to get rid of 3D coordinate system symbol/object from pdegplot output.
b=findobj(gca,'Type','Quiver'); Now b has the property of both Quiver. set there visibilty to off or whatever you want (use set...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
how can i overcome this error ? why i am getting error like this ?
watershed is some mfile in your code and not a function. You are trying to execute it as a function which is why it is giving er...

presque 6 ans il y a | 0

Réponse apportée
i am trying to make a calculator in matlab gui and i add + or - and i want to add int and diff so i write the 5 lines of codes
Anonymous Functions suppose i want to create an anonymous function which subtract two inputs An_fn = @(x,y) x-y; It is equi...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Saving a variable value after each for-loop iteration
Initialize a variable for counter and a variable to save values of p (suppose pp) in the start of code (before for loop) . Incr...

presque 6 ans il y a | 0

Réponse apportée
How to obtain the x and y vectors for those whose state is set to i in MATLAB
Your input and output have the same name Change it function [x_out,y_out] = nearInfectious2(x,y,states,radius) Initialize ...

presque 6 ans il y a | 0

Réponse apportée
Hi, I have a problem. I wrote a code that recognizes faces, mouths and noses. Now I can't write the code that, if the code doesn't find out the mouth and nose in a photo, will tell that the person is wearing something on them. Thanks
I am assuming a single person face for this purpose After detection of the face, the next thing to do is detect nose (now do no...

presque 6 ans il y a | 0

Réponse apportée
How do I convert my matrix of 5799 x 1 double into 1933 rows of 3 x 1 cells?
[3 3 3 3 3 3 3 3] or 3*ones(1,8) so you need 1933 times so what you have to do?

presque 6 ans il y a | 0

| A accepté

Réponse apportée
How to take function as input from textbox?
You can use any one of the following eval feval str2func For example The string user enters in text box is s = 'sin(x)'; ...

presque 6 ans il y a | 0

Réponse apportée
how to use switches on app designer
In line 40 of your code if strcmpi(conversionvalue, 'temperature') && strcmpi(switchvalue, 'imperial to metric') the string ...

presque 6 ans il y a | 0

Réponse apportée
Error using vertcat Dimensions of arrays being concatenated are not consistent.
Because R in line 14 is an array due to which beta is an array of size 1x365. The size of Five Rows you are trying to concatena...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
How to change the y-limit values from low to high?
h = gca; h.YDir = 'normal'

presque 6 ans il y a | 1

| A accepté

Réponse apportée
creating a rainbow colour plot/trajectory
You can use surface or patch for that purpose but not plot I am going to describe how to do it with patch figure,plot(1:3,[1 -...

presque 6 ans il y a | 0

Réponse apportée
Highlight speicific hour of x-axis on matlab graph
You are changing the color of axis and not highlighting a specific portion of plot. For that purpose you can use fill or patch. ...

presque 6 ans il y a | 0

Réponse apportée
Read data from binary file
By default, fread reads a file 1 byte at a time, interprets each byte as an 8-bit unsigned integer (uint8), and returns a double...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
I do not know how could i change the subplot in figure 2 to look the same as figure 1
nume='Hadar'; L=length(nume); n=50*L; F=1; Fs=1000; durata=2; t=0:1/Fs:durata; A1=2; s1=A1*sin(2*pi*F*t); A2=2 ; fi0=-...

presque 6 ans il y a | 0

Charger plus