답변 있음
How to draw 2D graph of 4 variables
try this function: quiver(X,Y,VX,Vy); you can add this graph to the previously created graph by using hold on statement. ht...

3년 초과 전 | 0

| 수락됨

답변 있음
Help With Graphing on the Same Plot
% Trohpic Cascade to calculate the changes in population in scallops and % cownose rays based on interactions with each other ...

3년 초과 전 | 0

답변 있음
Help With Graphing on the Same Plot
The second figure command, creates a new figure, you can comment it out: % The second graph %figure; plot(R); xlabel('time ...

3년 초과 전 | 0

답변 있음
Topographic map with gradient vector
You can look at this: https://www.mathworks.com/help/matlab/creating_plots/display-quiver-plot-over-contour-plot.html

3년 초과 전 | 0

답변 있음
Using DisplayName Within a Loop
col_sim = {'-ro', '-bs', '-*k','-gx'}; % symbols for each curve of the plot (simulated data) col_exp = {'ro', 'bs', '*k',...

3년 초과 전 | 0

답변 있음
finding the mean based on a specific value in other column
You can find the rows with the first condition and the other rows for the second condition. The intersection of the two rows, ar...

3년 초과 전 | 0

| 수락됨

답변 있음
Why does my output turn out like this certain times I run my code?
in the first if statement, add a simi-colon ath the end: if (a>b) limit = b; end Also, you can simplify the firs...

3년 초과 전 | 0

답변 있음
Function is not working
coror = relor + (relor - 180).*(relor > 90) + (relor + 180) .* (relor < -90);

3년 초과 전 | 0

| 수락됨

답변 있음
frequency based on dictionary
you can use unique function along with badOfWords https://www.mathworks.com/help/textanalytics/ref/bagofwords.html

3년 초과 전 | 0

답변 있음
What is the process in converting 45 mps to mph on matlab?
x = input('MPH value? '); % check 3.6? is it correct? y= x*3.6; printf ('kilometer per second %f\n',y) z=x.*2.23694; fprint...

3년 초과 전 | 0

답변 있음
How can I assign a value to variable using buttons?
fig = uifigure; Bolt1 = uibutton(fig,'Text', 'Bolt 1','Position',[50,380, 100, 22],'ButtonPushedFcn', 'button_state=1;button_st...

3년 초과 전 | 0

답변 있음
Loop Updating Vectors for Number of Iterations
Simply use A = [3 2 3; 5 5 6; 9 8 9]; b = [1; 2; 3]; x=b; for k=1:200 x=A\x; end

3년 초과 전 | 0

답변 있음
how to correctly get values for stress for Y >82 values should be close to zero at Y = 88.25
You can use vectorized if statement: Q = Q2 .* (Y >= 82) + Q1 .* (Y < 82); stress = abs(V.*Q)/(i*t);

3년 초과 전 | 0

| 수락됨

답변 있음
How do I write a script that calculates and prints all values ​​for N according to the following expressions and limits?
N=1; % sum function uses an internal loop % find the first N that sum is >= 1.6 while sum(1./[1:N].^2) < 1.6 N = N+1; e...

3년 초과 전 | 0

답변 있음
After a certain time for loop speed slow down?
You can create A without having two nested loops: E0=10; [km, jm] = meshgrid(1:1000, 1:1000); A= E0*exp(-65*((km - 500).^2 +...

3년 초과 전 | 0

답변 있음
Setting up equation with variables without values
Use (1/2)*Lp % instead of 1/2Lp

3년 초과 전 | 1

답변 있음
Bisection method in matlab
clc clear lc=3; lp=3; w=160; T= 700; f=@(d) (w*lc*lp/(d*sqrt(lp^2-d^2)))-T; xl=input('enter the value for Xl '); xu=input(...

3년 초과 전 | 0

답변 있음
How to find the index of the variable in my For Loop when a condition is met
[~,ind] = find(diff(nr)==0) % print indices for i = ind fprintf("%d is adjacent to a number of equal value\n", i) end

3년 초과 전 | 0

| 수락됨

답변 있음
How to find the index of the variable in my For Loop when a condition is met
Use [nf, ind] = find(nr == i); ind contains the index with the given condition

3년 초과 전 | 0

문제를 풀었습니다


Relative ratio of "1" in binary number
Input(n) is positive integer number Output(r) is (number of "1" in binary input) / (number of bits). Example: * n=0; r=...

3년 초과 전

문제를 풀었습니다


Binary code (array)
Write a function which calculates the binary code of a number 'n' and gives the result as an array(vector). Example: Inpu...

3년 초과 전

문제를 풀었습니다


Converting binary to decimals
Convert binary to decimals. Example: 010111 = 23. 110000 = 48.

3년 초과 전

문제를 풀었습니다


Find out sum and carry of Binary adder
Find out sum and carry of a binary adder if previous carry is given with two bits (x and y) for addition. Examples Previo...

3년 초과 전

문제를 풀었습니다


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

3년 초과 전

문제를 풀었습니다


Find the maximum number of decimal places in a set of numbers
Given a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not coun...

3년 초과 전

문제를 풀었습니다


Make roundn function
Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...

3년 초과 전

문제를 풀었습니다


Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

3년 초과 전

문제를 풀었습니다


Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

3년 초과 전

문제를 풀었습니다


Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

3년 초과 전

문제를 풀었습니다


Check that number is whole number
Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. <http://en.wikipedia.org/wiki/Whole...

3년 초과 전

더 보기