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

5 years ago | 0

| accepted

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

5 years ago | 1

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 0

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

5 years ago | 0

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 2

| accepted

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

5 years ago | 1

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

5 years ago | 0

| accepted

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

5 years ago | 1

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

5 years ago | 1

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 0

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

5 years ago | 1

| accepted

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

5 years ago | 0

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

5 years ago | 0

| accepted

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 0

| accepted

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 1

| accepted

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

5 years ago | 1

| accepted

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 0

| accepted

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

5 years ago | 0

Answered
putting tick marks on a graph/trajectory
https://ch.mathworks.com/help/matlab/ref/text.html

5 years ago | 0

Answered
Is it possible to display multiple figures next to each other
You can use copy object close all y = [1 2 3 4 5 6]; x1 = 5*y; figure() a1=plot(x1,y); x2 = y.^2; figure() a2=plot(x...

5 years ago | 0

| accepted

Load more