Feeds
문제를 풀었습니다
How to subtract?
*± ± ± ± ± ± ± ± ± ± ±* * Imagine you need to subtract one...
29일 전
문제를 풀었습니다
Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...
29일 전
문제를 풀었습니다
Remove the air bubbles
Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...
29일 전
문제를 풀었습니다
Force and Motion 3
Two robots push on a large object in the same direction. One robot pushes with a force of F1 Newtons and the other with a force...
29일 전
문제를 풀었습니다
Force and Motion 2
Two robots are pulling on an object in opposite directions. One robot pulls with a force of F1 Newtons and the other with a forc...
29일 전
문제를 풀었습니다
surrounded matrix
With a given matrix A (size m x n) create a matrix B (size m+2 x n+2) so that the matrix A is surrounded by ones: A = [1 2 ...
29일 전
문제를 풀었습니다
Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...
29일 전
문제를 풀었습니다
Number of Even Elements in Fibonacci Sequence
Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...
29일 전
문제를 풀었습니다
An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...
29일 전
문제를 풀었습니다
Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation, * F(n) = F(n-1) + F(n-2) * where F(1) = 1 and F(1)...
29일 전
문제를 풀었습니다
Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...
29일 전
문제를 풀었습니다
Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...
29일 전
문제를 풀었습니다
Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...
29일 전
문제를 풀었습니다
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...
29일 전
문제를 풀었습니다
Battery Life Estimation for a Device
A battery-powered device consumes a constant current while operating. The estimated battery life (T) can be calculated using the...
대략 1개월 전
문제를 풀었습니다
The MATLAB Treasure Hunt – Decode the First Clue Hidden in a Jumbled Sequence of Numbers
You discover an ancient parchment inside the college archives. It contains a jumbled sequence of numbers that seems meaningless ...
대략 2개월 전
답변 있음
saving graphic as pdf file not working "out of the box"
All of these options work fine for me with no warnings/errors on R2025b using Windows 10: plot(1:10) print -dpdf test.pdf sav...
saving graphic as pdf file not working "out of the box"
All of these options work fine for me with no warnings/errors on R2025b using Windows 10: plot(1:10) print -dpdf test.pdf sav...
3개월 전 | 0
답변 있음
Can I get notification when a new version (e.g., 2025a) is released?
Here's your notification - MATLAB R2025a is out! To answer your question though, a couple of years ago I set up a ThingSpeak wo...
Can I get notification when a new version (e.g., 2025a) is released?
Here's your notification - MATLAB R2025a is out! To answer your question though, a couple of years ago I set up a ThingSpeak wo...
7개월 전 | 0
답변 있음
Find items of a matrix using a per-column index
A = [1, 2, 3; 4, 5, 6]; idx = [2, 2, 1]; linearIndices = sub2ind(size(A), idx, 1:length(idx)); result = A(linearIndices)
Find items of a matrix using a per-column index
A = [1, 2, 3; 4, 5, 6]; idx = [2, 2, 1]; linearIndices = sub2ind(size(A), idx, 1:length(idx)); result = A(linearIndices)
11개월 전 | 0
| 수락됨
답변 있음
hey so i need to repeat the code everytime to see and analyze the time responses for 20 different values of k. How can i do it at once and have the output for all the values?
There are many ways to go about this and your question is not very specific in what you want. What values do you want to keep? ...
hey so i need to repeat the code everytime to see and analyze the time responses for 20 different values of k. How can i do it at once and have the output for all the values?
There are many ways to go about this and your question is not very specific in what you want. What values do you want to keep? ...
1년 초과 전 | 0
답변 있음
how to writefile string as a text-file with function
'\' is a formatting operator, so to get a backslash using fprintf/sprintf, you need to have a '\\'. Your first line contains mul...
how to writefile string as a text-file with function
'\' is a formatting operator, so to get a backslash using fprintf/sprintf, you need to have a '\\'. Your first line contains mul...
1년 초과 전 | 0
| 수락됨
답변 있음
smart function to switch functions
You could set up a function with a switch statement, something like: function odesolver(@fun,odesolverStr) switch odesolverStr...
smart function to switch functions
You could set up a function with a switch statement, something like: function odesolver(@fun,odesolverStr) switch odesolverStr...
1년 초과 전 | 0
답변 있음
Use drawing made by user in UI Axes to be animated onto graph
I've attempted this with the MATLAB logo as the image which is 'creating' the sine wave (see attached, the PNG file has to be in...
Use drawing made by user in UI Axes to be animated onto graph
I've attempted this with the MATLAB logo as the image which is 'creating' the sine wave (see attached, the PNG file has to be in...
1년 초과 전 | 0
| 수락됨
답변 있음
Plotting between a point and a frame
Not excatly sure if I've understood your question, but here's my attempt at interpreting it: n = 50; t = linspace(0,2*pi,n); ...
Plotting between a point and a frame
Not excatly sure if I've understood your question, but here's my attempt at interpreting it: n = 50; t = linspace(0,2*pi,n); ...
거의 2년 전 | 0
답변 있음
How do I Measure Distances in an Image and save them in an array?
I haven't been able to test this out but you should be able to change the output argument to include diffPos: function diffPos ...
How do I Measure Distances in an Image and save them in an array?
I haven't been able to test this out but you should be able to change the output argument to include diffPos: function diffPos ...
거의 2년 전 | 0
답변 있음
change mouse hover datatip information?
Since I don't have your GPSData data, here's a working example of how to do it using dataTipTextRow. See also Create Custom Data...
change mouse hover datatip information?
Since I don't have your GPSData data, here's a working example of how to do it using dataTipTextRow. See also Create Custom Data...
거의 2년 전 | 0
| 수락됨
답변 있음
How do I display an image that a user uploads?
I'm glad it worked out for you! Just adding my comment as an answer so you can accept it 🙂 The code you are using should work...
How do I display an image that a user uploads?
I'm glad it worked out for you! Just adding my comment as an answer so you can accept it 🙂 The code you are using should work...
거의 2년 전 | 0
| 수락됨
답변 있음
Use regexp to find all letters in string except one
I copied your question (with no edits) into the MATLAB AI Chat Playground, and this was the response: Yes, it is possible to bu...
Use regexp to find all letters in string except one
I copied your question (with no edits) into the MATLAB AI Chat Playground, and this was the response: Yes, it is possible to bu...
거의 2년 전 | 0
답변 있음
Exportgraphics does only export black images from UIAxes
When I run this code (from the command window), it all works fine (Windows 10, MATLAB R2023b Update 6). See attached image for r...
Exportgraphics does only export black images from UIAxes
When I run this code (from the command window), it all works fine (Windows 10, MATLAB R2023b Update 6). See attached image for r...
거의 2년 전 | 0
답변 있음
Error while using readPDFFormData to extract data from online pdf files
I was not able to get the URL to work directly either (not sure why since I'm pretty sure reading online images such as PNG/JPG ...
Error while using readPDFFormData to extract data from online pdf files
I was not able to get the URL to work directly either (not sure why since I'm pretty sure reading online images such as PNG/JPG ...
대략 2년 전 | 0
| 수락됨











