Statistica
RANK
776
of 300.753
REPUTAZIONE
100
CONTRIBUTI
1 Domanda
41 Risposte
ACCETTAZIONE DELLE RISPOSTE
0.0%
VOTI RICEVUTI
18
CONTRIBUTI
0 Post
CONTRIBUTI
0 Pubblico Canali
VALUTAZIONE MEDIA
CONTRIBUTI
0 Punti principali
NUMERO MEDIO DI LIKE
Feeds
Risolto
How to subtract?
*± ± ± ± ± ± ± ± ± ± ±* * Imagine you need to subtract one...
28 giorni fa
Risolto
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...
28 giorni fa
Risolto
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...
28 giorni fa
Risolto
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...
28 giorni fa
Risolto
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...
28 giorni fa
Risolto
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 ...
28 giorni fa
Risolto
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. ...
28 giorni fa
Risolto
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...
28 giorni fa
Risolto
An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...
28 giorni fa
Risolto
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)...
28 giorni fa
Risolto
Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...
28 giorni fa
Risolto
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...
28 giorni fa
Risolto
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...
28 giorni fa
Risolto
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...
28 giorni fa
Risolto
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...
circa un mese fa
Risolto
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 ...
circa 2 mesi fa
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 mesi fa | 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...
7 mesi fa | 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)
11 mesi fa | 0
| accettato
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? ...
oltre un anno fa | 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...
oltre un anno fa | 0
| accettato
smart function to switch functions
You could set up a function with a switch statement, something like: function odesolver(@fun,odesolverStr) switch odesolverStr...
oltre un anno fa | 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...
oltre un anno fa | 0
| accettato
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); ...
quasi 2 anni fa | 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 ...
quasi 2 anni fa | 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...
quasi 2 anni fa | 0
| accettato
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...
quasi 2 anni fa | 0
| accettato
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...
quasi 2 anni fa | 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...
quasi 2 anni fa | 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 ...
circa 2 anni fa | 0
| accettato











