回答済み
How to make the time invtervals between two index fixed when plotting in real time using function 'tic toc'
"But I want the time intervals to be fixed, for example, it recordes index every 0.3 seconds regularly. My code is look like bel...

約5年 前 | 0

回答済み
Plot each individual cells in different graphs
datecell=load('datecell.mat'); datecell=datecell.datecell; smcell=load('smcell.mat'); smcell=smcell.smcell; figure, for ci=...

約5年 前 | 0

| 採用済み

回答済み
I'm trying to plot my function into a graph but it won't even run
function y=displacement(theta) y=zeros(1,length(theta)); for i=1:length(theta) if theta(i)>=0 & theta(i)<= pi/2 y(i)=6*(...

約5年 前 | 0

| 採用済み

回答済み
I want to use circshift until a certain value in my vector until it reaches the end of the array.
front_pos = 17800; rear_pos = 58400; B = [0 0 0 0 rear_pos 0 front_pos 0 0 0 0 0 0 0 0 0 0 0 0 0 0]'; while B(end)~=front_pos...

約5年 前 | 0

回答済み
Plot Error Please help
There must be one else condition (to avoid any mismatch between vectors length). If none of the conditions is true, then such co...

約5年 前 | 0

回答済み
Riemanns_integral error
Error using sym/rsums Too many output arguments. If you check the MATLAB docs of rsums: Which is function for displays a itera...

約5年 前 | 0

回答済み
how i do a 3D plot of rect(n1,n2) function
n1=-1; n2=1; [x,y]=meshgrid(n1:0.01:n2,n1:0.01:n2); z=zeros(size(x,1),size(x,2)); z(x>-0.5 & x<0.5)=1; s=surf(x,y,z,'FaceAl...

約5年 前 | 0

回答済み
How can I call a Dataset folder for image preprocessing?
Images call, there are so mahy related threads Link 1 Link 2 Link 3 Link 4 Hope It Helps!

約5年 前 | 0

回答済み
How can I get my matrix to populate with correct values from for loop?
When my for loop continues to iteration 2 to 50, the rest of colum 2 is populted by 1's. Can someone please help me understand w...

約5年 前 | 0

回答済み
Creating plans and 3D shapes with x,y,z coordinates.
There may be subjective related toolboox/CAD tool to design such surfaces. You may try with surf plot, here on eexample. Here y...

約5年 前 | 0

| 採用済み

回答済み
How can we accurately estimate execution time?
One way: Using Stoptwatch Timer tic ...... toc https://in.mathworks.com/help/matlab/ref/tic.html More: Function execution ...

約5年 前 | 0

| 採用済み

回答済み
how do i select only a certain area of ​​an image and then use it to get the mean pixel value?
This is all about how you can correctly segregate ROI, what the red fields refer to, as there is no clear boundary in the area o...

約5年 前 | 1

回答済み
how to create two sinusoidal signals
Hint: A=.....%Amplitude t=0:0.01:1; %time ph=......%Set Phase difference w=.....% Frequency sin1=................% Asin(wt...

約5年 前 | 1

| 採用済み

回答済み
Plotting a line moving down straight vertically. Both the lines are not rotating in symmetry.
"Both the lines are not rotating in symmetry." plot([-L1*cosd(t1),0],[L1*sind(t1),0]); % First Line %..............^changed he...

約5年 前 | 0

回答済み
NOT GETTING PLOT , Actually i want a to find out the change in density,temp, pessure with altitude ( standard atmospheric properties). then use the density for other formula. plzz help . standard atmospheric prop. code given by friend,not understand
This is a function file, you need to pass the correct specific input values to get the output. Once I tried with a random array ...

約5年 前 | 0

| 採用済み

回答済み
No values for RK method
There is no numerical data within Xg and Xs (all are NaN), same for 2nd figure also, hence there is no plots. Your next goal sho...

約5年 前 | 0

回答済み
how to plot graph from text data as shown in the image
Try this way in MATLAB edit window %Load the file A=readmatrix('file.txt'); Get the x and y values x=A(:,1); x=A(:,2); Pl...

約5年 前 | 0

| 採用済み

回答済み
How Can I mix my matrix randomly ?
One way: Here data is 100 by 100 matrix mat_data=data(:); result=reshape(mat_data(randperm(100*100)),[100,100]);

約5年 前 | 0

| 採用済み

回答済み
Error: Array indices must be positive integers or logical values
Q = 0.16; %[m^3/s] flowraten r_2 = 0.25; %[m]Ydre radius D_2 = 0.50 %[m]Ydre diameter b_2 = 0.5 ...

約5年 前 | 0

回答済み
How i can plot the below sigmoid function?
It is all about specific parameter values ​​how we know this, because we cannot be from the same subjective field. Define the t...

約5年 前 | 0

回答済み
Please, I would like to present my xlimit in a plot into scientific notation?
x_data=0:15000; plot(x_data); ax=gca; ax.XAxis.Exponent=3; See more option here https://in.mathworks.com/help/matlab/creat...

約5年 前 | 0

| 採用済み

回答済み
I am trying to test a part of my code but it shows me this message ! how can i solve it , Help plz !
This is due to a name mismatch between the upper case or lower case in the custom function name. Matlab is case-sensitive. Modif...

約5年 前 | 0

回答済み
What is square Hankel matrix?
Do read here https://in.mathworks.com/help/matlab/ref/hankel.html

約5年 前 | 0

回答済み
Grouping rows into different matrices
G=mat2cell(M,10*ones(1,2000/10)) All are individual matrices, you have to save matrices in the cell array (easiest way)

約5年 前 | 0

| 採用済み

回答済み
How to output matrix grayscale?
This one? imagesc(M);

約5年 前 | 1

| 採用済み

回答済み
Creating 3D graph
This way, see the surf plot Beta=rand(1,71); % Change Data, here random sample data Lambda=rand(101,1); % Change Data, here ra...

約5年 前 | 0

| 採用済み

回答済み
how to get average of multiple rows and subtract from one group of average to another
As you mentioned, the size of the data is "10039 columns, 64 rows" Load the file using readmatrix or load function. Easiest Wa...

約5年 前 | 0

回答済み
How to assign NaN to an empty cells in array for data arrangement?
Please try with readtable, it replaces all missing data with NaN. Note: Text files have unwanted header descriptions, you can...

約5年 前 | 0

回答済み
How to generate a normal matrix?
You can do this in many ways, one way is as follows Hope, for the last corner mat(1,:)= ....element, you can manipulate: Suffi...

約5年 前 | 1

| 採用済み

回答済み
How to Preallocate this loop?
xaxis=zeros(1,ncut); yaxis=zeros(1,ncut); wig=zeros(ncut,ncut); More: Avoid using xaxis and yaxis as variable names, there ma...

約5年 前 | 0

| 採用済み

さらに読み込む