已回答
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...

4 years 前 | 0

已回答
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

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 1

| 已接受

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

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 0

已回答
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...

4 years 前 | 0

| 已接受

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

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 2

| 已接受

已回答
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...

4 years 前 | 1

已回答
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 ...

4 years 前 | 0

| 已接受

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

4 years 前 | 1

已回答
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, '...

4 years 前 | 1

| 已接受

已回答
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...

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 0

已回答
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...

4 years 前 | 1

| 已接受

已回答
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...

4 years 前 | 0

已回答
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...

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 0

已回答
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 ...

4 years 前 | 0

已回答
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...

4 years 前 | 0

已回答
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?

4 years 前 | 0

| 已接受

已回答
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)'; ...

4 years 前 | 0

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

4 years 前 | 0

已回答
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...

4 years 前 | 1

| 已接受

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

4 years 前 | 1

| 已接受

已回答
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 -...

4 years 前 | 0

已回答
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. ...

4 years 前 | 0

已回答
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...

4 years 前 | 0

| 已接受

已回答
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=-...

4 years 前 | 0

加载更多