回答済み
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...

約6年 前 | 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

約6年 前 | 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...

約6年 前 | 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...

約6年 前 | 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...

約6年 前 | 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...

約6年 前 | 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...

約6年 前 | 0

| 採用済み

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

約6年 前 | 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...

約6年 前 | 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...

約6年 前 | 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 ...

約6年 前 | 0

| 採用済み

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

約6年 前 | 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, '...

約6年 前 | 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...

約6年 前 | 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...

約6年 前 | 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...

約6年 前 | 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...

約6年 前 | 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...

約6年 前 | 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...

約6年 前 | 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 ...

約6年 前 | 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...

約6年 前 | 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?

約6年 前 | 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)'; ...

約6年 前 | 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 ...

約6年 前 | 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...

約6年 前 | 1

| 採用済み

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

約6年 前 | 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 -...

約6年 前 | 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. ...

約6年 前 | 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...

約6年 前 | 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=-...

約6年 前 | 0

さらに読み込む