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

más de 4 años hace | 0

Respondida
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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 2

| aceptada

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

más de 4 años hace | 1

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

más de 4 años hace | 0

| aceptada

Respondida
Transparency of Image overlay on Google Earth (kmz file)
Use export_fig to save transparent png

más de 4 años hace | 1

Respondida
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, '...

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

Respondida
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?

más de 4 años hace | 0

| aceptada

Respondida
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)'; ...

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 1

| aceptada

Respondida
How to change the y-limit values from low to high?
h = gca; h.YDir = 'normal'

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

Cargar más